diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-09-13 12:20:40 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-09-13 12:20:40 +0200 |
commit | 150dcdbc142d718f01b43f01f7a7f14db44f55fe (patch) | |
tree | 087fc71c26fe868c41a63d8900127a462ea96060 | |
parent | 99bbcedaeaa7f2a951fc1c122b31c874d81d768e (diff) | |
download | kube-150dcdbc142d718f01b43f01f7a7f14db44f55fe.tar.gz kube-150dcdbc142d718f01b43f01f7a7f14db44f55fe.zip |
visual brushup for attachementdelegate
-rw-r--r-- | framework/qml/AttachmentDelegate.qml | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/framework/qml/AttachmentDelegate.qml b/framework/qml/AttachmentDelegate.qml index 2167fa12..3c308e65 100644 --- a/framework/qml/AttachmentDelegate.qml +++ b/framework/qml/AttachmentDelegate.qml | |||
@@ -28,7 +28,7 @@ Item { | |||
28 | signal clicked; | 28 | signal clicked; |
29 | signal execute; | 29 | signal execute; |
30 | 30 | ||
31 | width: content.width + Kube.Units.smallSpacing | 31 | width: content.width + Kube.Units.smallSpacing * 1.5 |
32 | height: content.height + Kube.Units.smallSpacing | 32 | height: content.height + Kube.Units.smallSpacing |
33 | 33 | ||
34 | Rectangle { | 34 | Rectangle { |
@@ -46,13 +46,23 @@ Item { | |||
46 | 46 | ||
47 | Row { | 47 | Row { |
48 | id: content | 48 | id: content |
49 | anchors.centerIn: parent | 49 | anchors { |
50 | left: parent.left | ||
51 | leftMargin: Kube.Units.smallSpacing | ||
52 | verticalCenter: parent.verticalCenter | ||
53 | } | ||
50 | spacing: Kube.Units.smallSpacing | 54 | spacing: Kube.Units.smallSpacing |
51 | Kube.Icon { | 55 | |
52 | anchors.verticalCenter: parent.verticalCenter | 56 | Rectangle { |
57 | color: Kube.Colors.backgroundColor | ||
53 | height: Kube.Units.gridUnit | 58 | height: Kube.Units.gridUnit |
54 | width: Kube.Units.gridUnit | 59 | width: Kube.Units.gridUnit |
55 | iconName: root.icon | 60 | Kube.Icon { |
61 | anchors.verticalCenter: parent.verticalCenter | ||
62 | height: Kube.Units.gridUnit | ||
63 | width: Kube.Units.gridUnit | ||
64 | iconName: root.icon | ||
65 | } | ||
56 | } | 66 | } |
57 | Label { | 67 | Label { |
58 | anchors.verticalCenter: parent.verticalCenter | 68 | anchors.verticalCenter: parent.verticalCenter |