summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/package/contents/ui/AttachmentDelegate.qml17
1 files changed, 10 insertions, 7 deletions
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
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21import org.kde.kirigami 1.0 as Kirigami 21import org.kde.kirigami 1.0 as Kirigami
22 22
23Rectangle { 23Item {
24 24
25 property string name 25 property string name
26 property string icon 26 property string icon
27 27
28 anchors.centerIn: parent 28 width: content.width + Kirigami.Units.gridUnit / 2
29 height: content.height + Kirigami.Units.gridUnit / 2
29 30
30 width: content.width + Kirigami.Units.largeSpacing 31 Rectangle {
31 height: content.height + Kirigami.Units.largeSpacing 32 anchors.fill: parent
32 33
33 color: Kirigami.Theme.textColor 34 id: background
35 color: Kirigami.Theme.disabledTextColor
36 }
34 37
35 RowLayout { 38 RowLayout {
36 id: content 39 id: content
37 40
38 anchors.centerIn: parent 41 anchors.centerIn: parent
39 42
40 spacing: Kirigami.Units.largeSpacing / 2 43 spacing: Kirigami.Units.smallSpacing
41 44
42 Rectangle { 45 Rectangle {
43 id: mimetype 46 id: mimetype
@@ -57,7 +60,7 @@ Rectangle {
57 60
58 Text { 61 Text {
59 text: "some attachment.csv" 62 text: "some attachment.csv"
60 color: Kirigami.Theme.backgroundColor 63 color: Kirigami.Theme.textColor
61 } 64 }
62 } 65 }
63} 66}