diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-07-26 12:30:02 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-07-26 12:30:02 +0200 |
commit | af2ccb54da5ae864d906f56102d14c664ddcaa56 (patch) | |
tree | 8901b625c62073b484af784b2cc5070576deb7f0 /framework/qml/MailListView.qml | |
parent | 01d73dfe68a74dab3b506d31c9626e17d8e33f2e (diff) | |
download | kube-af2ccb54da5ae864d906f56102d14c664ddcaa56.tar.gz kube-af2ccb54da5ae864d906f56102d14c664ddcaa56.zip |
visualize important mails
Diffstat (limited to 'framework/qml/MailListView.qml')
-rw-r--r-- | framework/qml/MailListView.qml | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 998d9729..ee4f4957 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -208,25 +208,38 @@ FocusScope { | |||
208 | 208 | ||
209 | Kube.Label { | 209 | Kube.Label { |
210 | id: threadCounter | 210 | id: threadCounter |
211 | anchors.right: parent.right | 211 | anchors { |
212 | right: parent.right | ||
213 | margins: Kube.Units.smallSpacing | ||
214 | } | ||
212 | text: model.threadSize | 215 | text: model.threadSize |
213 | color: content.unreadColor | 216 | color: content.unreadColor |
214 | visible: model.threadSize > 1 | 217 | visible: model.threadSize > 1 && !delegateRoot.focused |
218 | |||
215 | } | 219 | } |
216 | } | 220 | } |
217 | 221 | ||
218 | Row { | 222 | Kube.Icon { |
223 | anchors { | ||
224 | right: parent.right | ||
225 | verticalCenter: parent.verticalCenter | ||
226 | margins: Kube.Units.smallSpacing | ||
227 | } | ||
228 | |||
229 | visible: model.important && !delegateRoot.focused && !mouseArea.drag.active | ||
230 | iconName: Kube.Icons.isImportant | ||
231 | } | ||
232 | |||
233 | Column { | ||
219 | id: buttons | 234 | id: buttons |
220 | 235 | ||
221 | anchors { | 236 | anchors { |
222 | right: parent.right | 237 | right: parent.right |
223 | bottom: parent.bottom | ||
224 | margins: Kube.Units.smallSpacing | 238 | margins: Kube.Units.smallSpacing |
239 | verticalCenter: parent.verticalCenter | ||
225 | } | 240 | } |
226 | 241 | ||
227 | visible: delegateRoot.focused && !mouseArea.drag.active | 242 | visible: delegateRoot.focused && !mouseArea.drag.active |
228 | |||
229 | spacing: Kube.Units.smallSpacing | ||
230 | opacity: 0.7 | 243 | opacity: 0.7 |
231 | 244 | ||
232 | Kube.IconButton { | 245 | Kube.IconButton { |