summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2018-07-26 12:40:33 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2018-07-26 12:40:33 +0200
commit9839b9104119cbbb33eb8f4cbcce64b59a4d50aa (patch)
tree8ca02cea1cb84ace5f3e99864129efdf7718283d /framework
parentaf2ccb54da5ae864d906f56102d14c664ddcaa56 (diff)
downloadkube-9839b9104119cbbb33eb8f4cbcce64b59a4d50aa.tar.gz
kube-9839b9104119cbbb33eb8f4cbcce64b59a4d50aa.zip
make moved icon row also look pretty when in trash mode
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/MailListView.qml22
1 files changed, 11 insertions, 11 deletions
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
@@ -243,16 +243,25 @@ FocusScope {
243 opacity: 0.7 243 opacity: 0.7
244 244
245 Kube.IconButton { 245 Kube.IconButton {
246 id: restoreButton
247 iconName: Kube.Icons.undo
248 visible: !!model.trash
249 onClicked: Kube.Fabric.postMessage(Kube.Messages.restoreFromTrash, {"mail": model.mail})
250 activeFocusOnTab: false
251 tooltip: qsTr("Restore from trash")
252 }
253
254 Kube.IconButton {
246 id: readButton 255 id: readButton
247 iconName: Kube.Icons.markAsRead 256 iconName: Kube.Icons.markAsRead
248 visible: model.unread 257 visible: model.unread && !model.trash
249 onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": model.mail}) 258 onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": model.mail})
250 tooltip: qsTr("Mark as read") 259 tooltip: qsTr("Mark as read")
251 } 260 }
252 Kube.IconButton { 261 Kube.IconButton {
253 id: unreadButton 262 id: unreadButton
254 iconName: Kube.Icons.markAsUnread 263 iconName: Kube.Icons.markAsUnread
255 visible: !model.unread 264 visible: !model.unread && !model.trash
256 onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsUnread, {"mail": model.mail}) 265 onClicked: Kube.Fabric.postMessage(Kube.Messages.markAsUnread, {"mail": model.mail})
257 activeFocusOnTab: false 266 activeFocusOnTab: false
258 tooltip: qsTr("Mark as unread") 267 tooltip: qsTr("Mark as unread")
@@ -276,15 +285,6 @@ FocusScope {
276 activeFocusOnTab: false 285 activeFocusOnTab: false
277 tooltip: qsTr("Move to trash") 286 tooltip: qsTr("Move to trash")
278 } 287 }
279
280 Kube.IconButton {
281 id: restoreButton
282 iconName: Kube.Icons.undo
283 visible: !!model.trash
284 onClicked: Kube.Fabric.postMessage(Kube.Messages.restoreFromTrash, {"mail": model.mail})
285 activeFocusOnTab: false
286 tooltip: qsTr("Restore from trash")
287 }
288 } 288 }
289 } 289 }
290 } 290 }