From 9839b9104119cbbb33eb8f4cbcce64b59a4d50aa Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 26 Jul 2018 12:40:33 +0200 Subject: make moved icon row also look pretty when in trash mode --- framework/qml/MailListView.qml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'framework/qml/MailListView.qml') diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index ee4f4957..5d26465e 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml @@ -242,17 +242,26 @@ FocusScope { visible: delegateRoot.focused && !mouseArea.drag.active opacity: 0.7 + Kube.IconButton { + id: restoreButton + iconName: Kube.Icons.undo + visible: !!model.trash + onClicked: Kube.Fabric.postMessage(Kube.Messages.restoreFromTrash, {"mail": model.mail}) + activeFocusOnTab: false + tooltip: qsTr("Restore from trash") + } + Kube.IconButton { id: readButton iconName: Kube.Icons.markAsRead - visible: model.unread + visible: model.unread && !model.trash onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": model.mail}) tooltip: qsTr("Mark as read") } Kube.IconButton { id: unreadButton iconName: Kube.Icons.markAsUnread - visible: !model.unread + visible: !model.unread && !model.trash onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsUnread, {"mail": model.mail}) activeFocusOnTab: false tooltip: qsTr("Mark as unread") @@ -276,15 +285,6 @@ FocusScope { activeFocusOnTab: false tooltip: qsTr("Move to trash") } - - Kube.IconButton { - id: restoreButton - iconName: Kube.Icons.undo - visible: !!model.trash - onClicked: Kube.Fabric.postMessage(Kube.Messages.restoreFromTrash, {"mail": model.mail}) - activeFocusOnTab: false - tooltip: qsTr("Restore from trash") - } } } } -- cgit v1.2.3