From 1e68205f7f40f7ce2c457d0db60cdff4587da244 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 24 May 2017 14:17:30 +0200 Subject: Fixed attachment icon sizes --- framework/qml/AttachmentDelegate.qml | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'framework') diff --git a/framework/qml/AttachmentDelegate.qml b/framework/qml/AttachmentDelegate.qml index 081baf5d..06e15214 100644 --- a/framework/qml/AttachmentDelegate.qml +++ b/framework/qml/AttachmentDelegate.qml @@ -39,39 +39,24 @@ Item { Row { id: content - anchors.centerIn: parent - spacing: Kube.Units.smallSpacing - - Rectangle { - id: mimetype - + Kube.Icon { + anchors.verticalCenter: parent.verticalCenter height: Kube.Units.gridUnit width: Kube.Units.gridUnit - - color: Kube.Colors.backgroundColor - - Kube.Icon { - height: parent.height - width: height - iconName: root.icon - } + iconName: root.icon } - Label { + anchors.verticalCenter: parent.verticalCenter text: root.name color: Kube.Colors.backgroundColor } Kube.IconButton { - height: parent.height - width: height iconName: Kube.Icons.goDown onClicked: root.download() } Kube.IconButton { - height: parent.height - width: height iconName: Kube.Icons.edit onClicked: root.open() } -- cgit v1.2.3