diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-08-28 08:53:17 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-08-28 08:53:17 +0200 |
commit | 96cbe7cfbe70953d60fa867b87ee5ae395911b33 (patch) | |
tree | 36e256543c8bc2c7e6ea4fea05e3db4fdbf65782 | |
parent | 2154b6b541d49ba0a85c286da0486888d1b918c4 (diff) | |
download | kube-96cbe7cfbe70953d60fa867b87ee5ae395911b33.tar.gz kube-96cbe7cfbe70953d60fa867b87ee5ae395911b33.zip |
highlight unread mails in conversation view
-rw-r--r-- | framework/qml/ConversationView.qml | 1 | ||||
-rw-r--r-- | framework/qml/MailViewer.qml | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml index 9eab9afa..c4cdea32 100644 --- a/framework/qml/ConversationView.qml +++ b/framework/qml/ConversationView.qml | |||
@@ -106,6 +106,7 @@ FocusScope { | |||
106 | cc: model.cc | 106 | cc: model.cc |
107 | bcc: model.bcc | 107 | bcc: model.bcc |
108 | date: model.date | 108 | date: model.date |
109 | unread: model.unread | ||
109 | trash: model.trash | 110 | trash: model.trash |
110 | draft: model.draft | 111 | draft: model.draft |
111 | sent: model.sent | 112 | sent: model.sent |
diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index 5e1ef845..3bf75eb9 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml | |||
@@ -41,6 +41,7 @@ Rectangle { | |||
41 | property variant sent; | 41 | property variant sent; |
42 | property bool incomplete: false; | 42 | property bool incomplete: false; |
43 | property bool current: false; | 43 | property bool current: false; |
44 | property bool unread; | ||
44 | 45 | ||
45 | implicitHeight: header.height + attachments.height + body.height + incompleteBody.height + footer.height + Kube.Units.largeSpacing | 46 | implicitHeight: header.height + attachments.height + body.height + incompleteBody.height + footer.height + Kube.Units.largeSpacing |
46 | 47 | ||
@@ -389,6 +390,12 @@ Rectangle { | |||
389 | } | 390 | } |
390 | } | 391 | } |
391 | } | 392 | } |
393 | Rectangle { | ||
394 | anchors.fill: parent | ||
395 | color: Kube.Colors.buttonColor | ||
396 | opacity: 0.4 | ||
397 | visible: root.unread | ||
398 | } | ||
392 | 399 | ||
393 | Component { | 400 | Component { |
394 | id: debugPopupComponent | 401 | id: debugPopupComponent |