From 150dcdbc142d718f01b43f01f7a7f14db44f55fe Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 13 Sep 2017 12:20:40 +0200 Subject: visual brushup for attachementdelegate --- framework/qml/AttachmentDelegate.qml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'framework/qml') 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 { signal clicked; signal execute; - width: content.width + Kube.Units.smallSpacing + width: content.width + Kube.Units.smallSpacing * 1.5 height: content.height + Kube.Units.smallSpacing Rectangle { @@ -46,13 +46,23 @@ Item { Row { id: content - anchors.centerIn: parent + anchors { + left: parent.left + leftMargin: Kube.Units.smallSpacing + verticalCenter: parent.verticalCenter + } spacing: Kube.Units.smallSpacing - Kube.Icon { - anchors.verticalCenter: parent.verticalCenter + + Rectangle { + color: Kube.Colors.backgroundColor height: Kube.Units.gridUnit width: Kube.Units.gridUnit - iconName: root.icon + Kube.Icon { + anchors.verticalCenter: parent.verticalCenter + height: Kube.Units.gridUnit + width: Kube.Units.gridUnit + iconName: root.icon + } } Label { anchors.verticalCenter: parent.verticalCenter -- cgit v1.2.3