From 96cbe7cfbe70953d60fa867b87ee5ae395911b33 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 28 Aug 2017 08:53:17 +0200 Subject: highlight unread mails in conversation view --- framework/qml/ConversationView.qml | 1 + framework/qml/MailViewer.qml | 7 +++++++ 2 files changed, 8 insertions(+) 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 { cc: model.cc bcc: model.bcc date: model.date + unread: model.unread trash: model.trash draft: model.draft 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 { property variant sent; property bool incomplete: false; property bool current: false; + property bool unread; implicitHeight: header.height + attachments.height + body.height + incompleteBody.height + footer.height + Kube.Units.largeSpacing @@ -389,6 +390,12 @@ Rectangle { } } } + Rectangle { + anchors.fill: parent + color: Kube.Colors.buttonColor + opacity: 0.4 + visible: root.unread + } Component { id: debugPopupComponent -- cgit v1.2.3