diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-01-11 19:14:38 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-01-11 19:14:38 +0100 |
commit | 76c761db28650f31ce9a4a3154616b7d1dc52038 (patch) | |
tree | 53401c8fa318795adbb9bbb2e55553990207a29e /components/package/contents/ui/MailListView.qml | |
parent | 68a9c4803c77d8f27dfe2df6afcc40ad03e81f74 (diff) | |
download | kube-76c761db28650f31ce9a4a3154616b7d1dc52038.tar.gz kube-76c761db28650f31ce9a4a3154616b7d1dc52038.zip |
add hover actions
Diffstat (limited to 'components/package/contents/ui/MailListView.qml')
-rw-r--r-- | components/package/contents/ui/MailListView.qml | 57 |
1 files changed, 48 insertions, 9 deletions
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml index 13e697ae..398de649 100644 --- a/components/package/contents/ui/MailListView.qml +++ b/components/package/contents/ui/MailListView.qml | |||
@@ -169,15 +169,15 @@ Item { | |||
169 | leftMargin: Kirigami.Units.largeSpacing | 169 | leftMargin: Kirigami.Units.largeSpacing |
170 | } | 170 | } |
171 | 171 | ||
172 | Text{ | 172 | Text{ |
173 | text: model.subject | 173 | text: model.subject |
174 | color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : model.unread ? "#1d99f3" : Kirigami.Theme.textColor | 174 | color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : model.unread ? Kirigami.Theme.highlightColor : Kirigami.Theme.textColor |
175 | 175 | ||
176 | maximumLineCount: 2 | 176 | maximumLineCount: 2 |
177 | width: mailListDelegate.width - Kirigami.Units.largeSpacing * 2 - unreadCounter.width | 177 | width: mailListDelegate.width - Kirigami.Units.largeSpacing * 2 - unreadCounter.width |
178 | wrapMode: Text.Wrap | 178 | wrapMode: Text.Wrap |
179 | elide: Text.ElideRight | 179 | elide: Text.ElideRight |
180 | } | 180 | } |
181 | 181 | ||
182 | Text { | 182 | Text { |
183 | text: model.senderName | 183 | text: model.senderName |
@@ -197,6 +197,9 @@ Item { | |||
197 | font.italic: true | 197 | font.italic: true |
198 | color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.disabledTextColor | 198 | color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.disabledTextColor |
199 | font.pointSize: 9 | 199 | font.pointSize: 9 |
200 | |||
201 | visible: mailListDelegate.containsMouse == false | ||
202 | |||
200 | } | 203 | } |
201 | 204 | ||
202 | Text { | 205 | Text { |
@@ -210,6 +213,42 @@ Item { | |||
210 | text: model.threadSize | 213 | text: model.threadSize |
211 | color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : model.unread ? "#1d99f3" : Kirigami.Theme.disabledTextColor | 214 | color: mailListDelegate.checked ? Kirigami.Theme.highlightedTextColor : model.unread ? "#1d99f3" : Kirigami.Theme.disabledTextColor |
212 | } | 215 | } |
216 | |||
217 | Row { | ||
218 | id: actionButtons | ||
219 | |||
220 | anchors { | ||
221 | right: parent.right | ||
222 | bottom: parent.bottom | ||
223 | } | ||
224 | |||
225 | visible: mailListDelegate.containsMouse == true | ||
226 | spacing: Kirigami.Units.smallSpacing | ||
227 | |||
228 | Controls.ToolButton { | ||
229 | iconName: "mail-mark-unread" | ||
230 | enabled: mailController.markAsReadAction.enabled | ||
231 | onClicked: { | ||
232 | //mailController.markAsReadAction.execute() | ||
233 | } | ||
234 | } | ||
235 | |||
236 | Controls.ToolButton { | ||
237 | iconName: "mail-mark-important" | ||
238 | enabled: mailController.markAsImportantAction.enabled | ||
239 | onClicked: { | ||
240 | //mailController.markAsImportantAction.execute() | ||
241 | } | ||
242 | } | ||
243 | |||
244 | Controls.ToolButton { | ||
245 | iconName: "edit-delete" | ||
246 | enabled: mailController.moveToTrashAction.enabled | ||
247 | onClicked: { | ||
248 | //mailController.moveToTrashAction.execute() | ||
249 | } | ||
250 | } | ||
251 | } | ||
213 | } | 252 | } |
214 | } | 253 | } |
215 | } | 254 | } |