From 3c6668028efd6ee91a496b57f80ecbf77ea12e9e Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Tue, 30 May 2017 08:59:03 +0200 Subject: make attachment delegate a little more pretty --- framework/qml/AttachmentDelegate.qml | 8 ++++---- framework/qml/Icons.qml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'framework') diff --git a/framework/qml/AttachmentDelegate.qml b/framework/qml/AttachmentDelegate.qml index 06e15214..a1785527 100644 --- a/framework/qml/AttachmentDelegate.qml +++ b/framework/qml/AttachmentDelegate.qml @@ -27,8 +27,8 @@ Item { signal open; signal download; - width: content.width + Kube.Units.gridUnit / 2 - height: content.height + Kube.Units.gridUnit / 2 + width: content.width + Kube.Units.smallSpacing + height: content.height + Kube.Units.smallSpacing Rectangle { anchors.fill: parent @@ -53,11 +53,11 @@ Item { color: Kube.Colors.backgroundColor } Kube.IconButton { - iconName: Kube.Icons.goDown + iconName: Kube.Icons.goDown_inverted onClicked: root.download() } Kube.IconButton { - iconName: Kube.Icons.edit + iconName: Kube.Icons.edit_inverted onClicked: root.open() } } diff --git a/framework/qml/Icons.qml b/framework/qml/Icons.qml index 05cde6c9..74627457 100644 --- a/framework/qml/Icons.qml +++ b/framework/qml/Icons.qml @@ -50,6 +50,7 @@ Item { property string goBack: "go-previous" property string goBack_inverted: "go-previous-inverted" property string goDown: "go-down" + property string goDown_inverted: "go-down-inverted" property string goUp: "go-down" property string addNew: "list-add-new" -- cgit v1.2.3