From 9caa72b17a978989396e1bd88240af0e57a2dfb6 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sun, 6 Nov 2016 10:53:04 +0100 Subject: use kirigami theme colors in mail list view --- components/package/contents/ui/MailListView.qml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'components/package/contents') diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml index 20ba4ed3..47168a66 100644 --- a/components/package/contents/ui/MailListView.qml +++ b/components/package/contents/ui/MailListView.qml @@ -96,7 +96,7 @@ Controls.ScrollView { Text{ text: model.subject - color: mailListDelegate.checked ? Kirigami.Theme.textColor : model.unread ? "#1d99f3" : Kirigami.Theme.textColor + color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : model.unread ? "#1d99f3" : Kirigami.Theme.textColor maximumLineCount: 2 width: mailListDelegate.width - Kirigami.Units.gridUnit * 3 @@ -106,7 +106,7 @@ Controls.ScrollView { Text { text: model.senderName font.italic: true - color: Kirigami.Theme.textColor + color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor } } @@ -117,12 +117,12 @@ Controls.ScrollView { } text: Qt.formatDateTime(model.date, "dd MMM yyyy") font.italic: true - color: Kirigami.Theme.textColor - opacity: 0.5 + color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.disabledTextColor font.pointSize: 9 } - Rectangle { + + Item { anchors { right: parent.right } @@ -132,14 +132,19 @@ Controls.ScrollView { visible: !mailListDelegate.checked - radius: 80 - color: model.unread ? "#1d99f3" : "lightgrey" + Rectangle { + anchors.fill: parent + + opacity: model.unread ? 1 : 0.5 + radius: 80 + color: model.unread ? Kirigami.Theme.highlightColor : Kirigami.Theme.disabledTextColor + } Text { anchors.centerIn: parent text: model.threadSize - color: "white" + color: Kirigami.Theme.highlightedTextColor } } -- cgit v1.2.3