From a74060d751cdf2346d04c1d009f8d8b629561d5d Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 7 Dec 2016 21:36:43 +0100 Subject: attachmentsdelegate: adjust colors and spacing --- components/package/contents/ui/AttachmentDelegate.qml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'components') diff --git a/components/package/contents/ui/AttachmentDelegate.qml b/components/package/contents/ui/AttachmentDelegate.qml index 18d6def4..91e07d49 100644 --- a/components/package/contents/ui/AttachmentDelegate.qml +++ b/components/package/contents/ui/AttachmentDelegate.qml @@ -20,24 +20,27 @@ import QtQuick 2.7 import QtQuick.Layouts 1.1 import org.kde.kirigami 1.0 as Kirigami -Rectangle { +Item { property string name property string icon - anchors.centerIn: parent + width: content.width + Kirigami.Units.gridUnit / 2 + height: content.height + Kirigami.Units.gridUnit / 2 - width: content.width + Kirigami.Units.largeSpacing - height: content.height + Kirigami.Units.largeSpacing + Rectangle { + anchors.fill: parent - color: Kirigami.Theme.textColor + id: background + color: Kirigami.Theme.disabledTextColor + } RowLayout { id: content anchors.centerIn: parent - spacing: Kirigami.Units.largeSpacing / 2 + spacing: Kirigami.Units.smallSpacing Rectangle { id: mimetype @@ -57,7 +60,7 @@ Rectangle { Text { text: "some attachment.csv" - color: Kirigami.Theme.backgroundColor + color: Kirigami.Theme.textColor } } } -- cgit v1.2.3