From 0d13d2fe1097db160c8b31cb1137846a97e3b362 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 26 Feb 2018 14:47:02 +0100 Subject: share instead of forward --- framework/qml/MailViewer.qml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index e37fb3f7..565adedd 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml @@ -378,34 +378,34 @@ Rectangle { rightMargin: Kube.Units.largeSpacing } columns: 2 + spacing: Kube.Units.smallSpacing - Kube.IconButton { - visible: !model.trash + Kube.Button { + visible: !model.trash && !model.draft activeFocusOnTab: false - iconName: model.draft ? Kube.Icons.edit : Kube.Icons.replyToSender + text: "Share" onClicked: { - if (model.draft) { - Kube.Fabric.postMessage(Kube.Messages.edit, {"mail": model.mail}) - } else { - Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": model.mail}) - } + Kube.Fabric.postMessage(Kube.Messages.forward, {"mail": model.mail}) } } - Kube.IconButton { - visible: !model.trash && !model.draft + Kube.Button { + visible: !model.trash activeFocusOnTab: false - iconName: Kube.Icons.forward + text: model.draft ? "Edit" : "Reply" onClicked: { - Kube.Fabric.postMessage(Kube.Messages.forward, {"mail": model.mail}) + if (model.draft) { + Kube.Fabric.postMessage(Kube.Messages.edit, {"mail": model.mail}) + } else { + Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": model.mail}) + } } } - } - } + Rectangle { anchors.fill: parent color: Kube.Colors.buttonColor -- cgit v1.2.3