From 0de58eb23927c7ecf923e2a63737c2d43b20572d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 22 Jun 2017 21:10:08 +0200 Subject: Support the removal of drafts. --- components/kube/contents/ui/ComposerView.qml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'components') diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml index 7bc3b061..cfc0e392 100644 --- a/components/kube/contents/ui/ComposerView.qml +++ b/components/kube/contents/ui/ComposerView.qml @@ -167,6 +167,8 @@ Kube.View { PropertyChanges {target: background; color: Kube.Colors.highlightColor; opacity: 0.6} PropertyChanges {target: subject; color: Kube.Colors.highlightedTextColor} + PropertyChanges {target: date; visible: false} + PropertyChanges {target: buttons; visible: true} } ] @@ -218,6 +220,29 @@ Kube.View { font.pointSize: 9 } } + Row { + id: buttons + + property bool containsMouse: deleteButton.hovered + + anchors { + right: parent.right + bottom: parent.bottom + margins: Kube.Units.smallSpacing + } + + visible: false + spacing: Kube.Units.smallSpacing + opacity: 0.7 + + Kube.IconButton { + id: deleteButton + iconName: Kube.Icons.moveToTrash + visible: enabled + enabled: !!model.mail + onClicked: Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": model.mail}) + } + } } } } -- cgit v1.2.3