diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-21 16:52:09 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-21 16:52:09 +0200 |
commit | 40d51446dec55d72fd88537bab570fbcc6cb69f7 (patch) | |
tree | 47ad303a004d7961087ac15c84a57bd25a27ad32 /framework/qml/MailListView.qml | |
parent | 27d072800799b39eacccd1b5a9c6c8540c952df9 (diff) | |
download | kube-40d51446dec55d72fd88537bab570fbcc6cb69f7.tar.gz kube-40d51446dec55d72fd88537bab570fbcc6cb69f7.zip |
add dummy button to maillist delegate
Diffstat (limited to 'framework/qml/MailListView.qml')
-rw-r--r-- | framework/qml/MailListView.qml | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index da5e9056..a662f5c8 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -216,18 +216,20 @@ Item { | |||
216 | PropertyChanges {target: background; color: Kube.Colors.highlightColor} | 216 | PropertyChanges {target: background; color: Kube.Colors.highlightColor} |
217 | PropertyChanges {target: subject; color: Kube.Colors.highlightedTextColor} | 217 | PropertyChanges {target: subject; color: Kube.Colors.highlightedTextColor} |
218 | PropertyChanges {target: sender; color: Kube.Colors.highlightedTextColor} | 218 | PropertyChanges {target: sender; color: Kube.Colors.highlightedTextColor} |
219 | PropertyChanges {target: date; color: Kube.Colors.highlightedTextColor} | ||
220 | PropertyChanges {target: threadCounter; color: Kube.Colors.highlightedTextColor} | 219 | PropertyChanges {target: threadCounter; color: Kube.Colors.highlightedTextColor} |
220 | PropertyChanges {target: date; visible: false} | ||
221 | PropertyChanges {target: buttons; visible: true} | ||
221 | }, | 222 | }, |
222 | State { | 223 | State { |
223 | name: "hovered" | 224 | name: "hovered" |
224 | when: mouseArea.containsMouse && !mouseArea.drag.active | 225 | when: ( mouseArea.containsMouse || buttons.containsMouse ) && !mouseArea.drag.active |
225 | 226 | ||
226 | PropertyChanges {target: background; color: Kube.Colors.highlightColor; opacity: 0.7} | 227 | PropertyChanges {target: background; color: Kube.Colors.highlightColor; opacity: 0.6} |
227 | PropertyChanges {target: subject; color: Kube.Colors.highlightedTextColor} | 228 | PropertyChanges {target: subject; color: Kube.Colors.highlightedTextColor} |
228 | PropertyChanges {target: sender; color: Kube.Colors.highlightedTextColor} | 229 | PropertyChanges {target: sender; color: Kube.Colors.highlightedTextColor} |
229 | PropertyChanges {target: date; color: Kube.Colors.highlightedTextColor} | 230 | PropertyChanges {target: date; visible: false} |
230 | PropertyChanges {target: threadCounter; color: Kube.Colors.highlightedTextColor} | 231 | PropertyChanges {target: threadCounter; color: Kube.Colors.highlightedTextColor} |
232 | PropertyChanges {target: buttons; visible: true} | ||
231 | } | 233 | } |
232 | ] | 234 | ] |
233 | 235 | ||
@@ -325,6 +327,39 @@ Item { | |||
325 | visible: model.threadSize > 1 | 327 | visible: model.threadSize > 1 |
326 | } | 328 | } |
327 | } | 329 | } |
330 | |||
331 | Row { | ||
332 | id: buttons | ||
333 | |||
334 | property bool containsMouse: importantButton.hovered || deleteButton.hovered || unreadButton.hovered | ||
335 | |||
336 | anchors { | ||
337 | right: parent.right | ||
338 | bottom: parent.bottom | ||
339 | margins: Kube.Units.smallSpacing | ||
340 | } | ||
341 | |||
342 | visible: false | ||
343 | spacing: Kube.Units.smallSpacing | ||
344 | opacity: 0.7 | ||
345 | |||
346 | Kube.Button { | ||
347 | id: unreadButton | ||
348 | |||
349 | text: "u" | ||
350 | } | ||
351 | |||
352 | Kube.Button { | ||
353 | id: importantButton | ||
354 | |||
355 | text: "i" | ||
356 | } | ||
357 | |||
358 | Kube.Button { | ||
359 | id: deleteButton | ||
360 | text: "d" | ||
361 | } | ||
362 | } | ||
328 | } | 363 | } |
329 | } | 364 | } |
330 | } | 365 | } |