diff options
Diffstat (limited to 'framework/qml')
-rw-r--r-- | framework/qml/Icons.qml | 3 | ||||
-rw-r--r-- | framework/qml/MailListView.qml | 25 |
2 files changed, 21 insertions, 7 deletions
diff --git a/framework/qml/Icons.qml b/framework/qml/Icons.qml index d04d1d92..1fa3aab2 100644 --- a/framework/qml/Icons.qml +++ b/framework/qml/Icons.qml | |||
@@ -35,8 +35,9 @@ Item { | |||
35 | 35 | ||
36 | property string markAsRead: "mail-mark-read-inverted" | 36 | property string markAsRead: "mail-mark-read-inverted" |
37 | property string markAsUnread: "mail-mark-unread-new-inverted" | 37 | property string markAsUnread: "mail-mark-unread-new-inverted" |
38 | property string markImportant: "kubeimportant" | 38 | property string markImportant: "kubeimportant-inverted" |
39 | property string markUnimportant: "kubeunimportant" | 39 | property string markUnimportant: "kubeunimportant" |
40 | property string isImportant: "kubeimportant" | ||
40 | property string undo: "edit-undo-inverted" | 41 | property string undo: "edit-undo-inverted" |
41 | property string moveToTrash: "kubetrash" | 42 | property string moveToTrash: "kubetrash" |
42 | property string edit: "document-edit" | 43 | property string edit: "document-edit" |
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 { |