summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-11-06 10:53:04 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-11-06 10:53:04 +0100
commit9caa72b17a978989396e1bd88240af0e57a2dfb6 (patch)
tree4c42239ad3fde01fceaeabcbef5feb7b439db41e
parentff54106d3b4721b3d87eec71267338940318a641 (diff)
downloadkube-9caa72b17a978989396e1bd88240af0e57a2dfb6.tar.gz
kube-9caa72b17a978989396e1bd88240af0e57a2dfb6.zip
use kirigami theme colors in mail list view
-rw-r--r--components/package/contents/ui/MailListView.qml21
1 files changed, 13 insertions, 8 deletions
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 {
96 96
97 Text{ 97 Text{
98 text: model.subject 98 text: model.subject
99 color: mailListDelegate.checked ? Kirigami.Theme.textColor : model.unread ? "#1d99f3" : Kirigami.Theme.textColor 99 color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : model.unread ? "#1d99f3" : Kirigami.Theme.textColor
100 100
101 maximumLineCount: 2 101 maximumLineCount: 2
102 width: mailListDelegate.width - Kirigami.Units.gridUnit * 3 102 width: mailListDelegate.width - Kirigami.Units.gridUnit * 3
@@ -106,7 +106,7 @@ Controls.ScrollView {
106 Text { 106 Text {
107 text: model.senderName 107 text: model.senderName
108 font.italic: true 108 font.italic: true
109 color: Kirigami.Theme.textColor 109 color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor
110 } 110 }
111 } 111 }
112 112
@@ -117,12 +117,12 @@ Controls.ScrollView {
117 } 117 }
118 text: Qt.formatDateTime(model.date, "dd MMM yyyy") 118 text: Qt.formatDateTime(model.date, "dd MMM yyyy")
119 font.italic: true 119 font.italic: true
120 color: Kirigami.Theme.textColor 120 color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.disabledTextColor
121 opacity: 0.5
122 font.pointSize: 9 121 font.pointSize: 9
123 } 122 }
124 123
125 Rectangle { 124
125 Item {
126 anchors { 126 anchors {
127 right: parent.right 127 right: parent.right
128 } 128 }
@@ -132,14 +132,19 @@ Controls.ScrollView {
132 132
133 visible: !mailListDelegate.checked 133 visible: !mailListDelegate.checked
134 134
135 radius: 80 135 Rectangle {
136 color: model.unread ? "#1d99f3" : "lightgrey" 136 anchors.fill: parent
137
138 opacity: model.unread ? 1 : 0.5
139 radius: 80
140 color: model.unread ? Kirigami.Theme.highlightColor : Kirigami.Theme.disabledTextColor
141 }
137 142
138 Text { 143 Text {
139 anchors.centerIn: parent 144 anchors.centerIn: parent
140 145
141 text: model.threadSize 146 text: model.threadSize
142 color: "white" 147 color: Kirigami.Theme.highlightedTextColor
143 } 148 }
144 149
145 } 150 }