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 | |
parent | 01d73dfe68a74dab3b506d31c9626e17d8e33f2e (diff) | |
download | kube-af2ccb54da5ae864d906f56102d14c664ddcaa56.tar.gz kube-af2ccb54da5ae864d906f56102d14c664ddcaa56.zip |
visualize important mails
-rw-r--r-- | framework/qml/Icons.qml | 3 | ||||
-rw-r--r-- | framework/qml/MailListView.qml | 25 | ||||
-rw-r--r-- | icons/breeze/icons/actions/24/kubeimportant-inverted.svg | 111 | ||||
-rw-r--r-- | icons/breeze/icons/actions/24/kubeimportant.svg | 16 |
4 files changed, 140 insertions, 15 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 { |
diff --git a/icons/breeze/icons/actions/24/kubeimportant-inverted.svg b/icons/breeze/icons/actions/24/kubeimportant-inverted.svg new file mode 100644 index 00000000..1a2949d8 --- /dev/null +++ b/icons/breeze/icons/actions/24/kubeimportant-inverted.svg | |||
@@ -0,0 +1,111 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <svg | ||
3 | xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
4 | xmlns:cc="http://creativecommons.org/ns#" | ||
5 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
6 | xmlns:svg="http://www.w3.org/2000/svg" | ||
7 | xmlns="http://www.w3.org/2000/svg" | ||
8 | xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
9 | xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
10 | viewBox="0 0 24 24" | ||
11 | id="svg2" | ||
12 | version="1.1" | ||
13 | inkscape:version="0.91 r13725" | ||
14 | sodipodi:docname="kubeiconsimportant24.svg" | ||
15 | width="24" | ||
16 | height="24"> | ||
17 | <metadata | ||
18 | id="metadata10"> | ||
19 | <rdf:RDF> | ||
20 | <cc:Work | ||
21 | rdf:about=""> | ||
22 | <dc:format>image/svg+xml</dc:format> | ||
23 | <dc:type | ||
24 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
25 | <dc:title></dc:title> | ||
26 | </cc:Work> | ||
27 | </rdf:RDF> | ||
28 | </metadata> | ||
29 | <sodipodi:namedview | ||
30 | pagecolor="#66d8ff" | ||
31 | bordercolor="#666666" | ||
32 | borderopacity="1" | ||
33 | objecttolerance="10" | ||
34 | gridtolerance="10" | ||
35 | guidetolerance="10" | ||
36 | inkscape:pageopacity="0" | ||
37 | inkscape:pageshadow="2" | ||
38 | inkscape:window-width="1280" | ||
39 | inkscape:window-height="1387" | ||
40 | id="namedview8" | ||
41 | showgrid="true" | ||
42 | inkscape:snap-bbox="true" | ||
43 | inkscape:bbox-nodes="true" | ||
44 | inkscape:object-nodes="true" | ||
45 | showguides="true" | ||
46 | inkscape:guide-bbox="true" | ||
47 | inkscape:zoom="2.8284271" | ||
48 | inkscape:cx="-152.28924" | ||
49 | inkscape:cy="14.675262" | ||
50 | inkscape:window-x="440" | ||
51 | inkscape:window-y="290" | ||
52 | inkscape:window-maximized="0" | ||
53 | inkscape:current-layer="svg2" | ||
54 | inkscape:snap-global="true"> | ||
55 | <inkscape:grid | ||
56 | type="xygrid" | ||
57 | id="grid4138" /> | ||
58 | <sodipodi:guide | ||
59 | position="12,24" | ||
60 | orientation="1,0" | ||
61 | id="guide4156" /> | ||
62 | <sodipodi:guide | ||
63 | position="14,12" | ||
64 | orientation="0,1" | ||
65 | id="guide4198" /> | ||
66 | </sodipodi:namedview> | ||
67 | <defs | ||
68 | id="defs3051"> | ||
69 | <style | ||
70 | type="text/css" | ||
71 | id="current-color-scheme"> | ||
72 | .ColorScheme-Text { | ||
73 | color:#4d4d4d; | ||
74 | } | ||
75 | </style> | ||
76 | <style | ||
77 | id="current-color-scheme-7" | ||
78 | type="text/css"> | ||
79 | .ColorScheme-Text { | ||
80 | color:#4d4d4d; | ||
81 | } | ||
82 | </style> | ||
83 | <style | ||
84 | id="current-color-scheme-3" | ||
85 | type="text/css"> | ||
86 | .ColorScheme-Text { | ||
87 | color:#4d4d4d; | ||
88 | } | ||
89 | </style> | ||
90 | <style | ||
91 | id="current-color-scheme-2" | ||
92 | type="text/css"> | ||
93 | .ColorScheme-Text { | ||
94 | color:#4d4d4d; | ||
95 | } | ||
96 | </style> | ||
97 | <style | ||
98 | id="current-color-scheme-27" | ||
99 | type="text/css"> | ||
100 | .ColorScheme-Text { | ||
101 | color:#4d4d4d; | ||
102 | } | ||
103 | </style> | ||
104 | </defs> | ||
105 | <path | ||
106 | id="path4449" | ||
107 | class="ColorScheme-Text" | ||
108 | d="M 12,4 9.523438,9.265625 4,10.109375 8,14.210938 7.054687,20 12,17.265625 16.945312,20 16,14.210938 20,10.109375 14.476562,9.265625 12,4 Z" | ||
109 | style="color:#4d4d4d;fill:#ffffff;fill-opacity:1;stroke:none" | ||
110 | inkscape:connector-curvature="0" /> | ||
111 | </svg> | ||
diff --git a/icons/breeze/icons/actions/24/kubeimportant.svg b/icons/breeze/icons/actions/24/kubeimportant.svg index 1a2949d8..3a5089a4 100644 --- a/icons/breeze/icons/actions/24/kubeimportant.svg +++ b/icons/breeze/icons/actions/24/kubeimportant.svg | |||
@@ -11,7 +11,7 @@ | |||
11 | id="svg2" | 11 | id="svg2" |
12 | version="1.1" | 12 | version="1.1" |
13 | inkscape:version="0.91 r13725" | 13 | inkscape:version="0.91 r13725" |
14 | sodipodi:docname="kubeiconsimportant24.svg" | 14 | sodipodi:docname="kubeimportant.svg" |
15 | width="24" | 15 | width="24" |
16 | height="24"> | 16 | height="24"> |
17 | <metadata | 17 | <metadata |
@@ -22,7 +22,7 @@ | |||
22 | <dc:format>image/svg+xml</dc:format> | 22 | <dc:format>image/svg+xml</dc:format> |
23 | <dc:type | 23 | <dc:type |
24 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | 24 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
25 | <dc:title></dc:title> | 25 | <dc:title /> |
26 | </cc:Work> | 26 | </cc:Work> |
27 | </rdf:RDF> | 27 | </rdf:RDF> |
28 | </metadata> | 28 | </metadata> |
@@ -36,7 +36,7 @@ | |||
36 | inkscape:pageopacity="0" | 36 | inkscape:pageopacity="0" |
37 | inkscape:pageshadow="2" | 37 | inkscape:pageshadow="2" |
38 | inkscape:window-width="1280" | 38 | inkscape:window-width="1280" |
39 | inkscape:window-height="1387" | 39 | inkscape:window-height="1005" |
40 | id="namedview8" | 40 | id="namedview8" |
41 | showgrid="true" | 41 | showgrid="true" |
42 | inkscape:snap-bbox="true" | 42 | inkscape:snap-bbox="true" |
@@ -44,11 +44,11 @@ | |||
44 | inkscape:object-nodes="true" | 44 | inkscape:object-nodes="true" |
45 | showguides="true" | 45 | showguides="true" |
46 | inkscape:guide-bbox="true" | 46 | inkscape:guide-bbox="true" |
47 | inkscape:zoom="2.8284271" | 47 | inkscape:zoom="5.6568542" |
48 | inkscape:cx="-152.28924" | 48 | inkscape:cx="24.592961" |
49 | inkscape:cy="14.675262" | 49 | inkscape:cy="-17.569332" |
50 | inkscape:window-x="440" | 50 | inkscape:window-x="440" |
51 | inkscape:window-y="290" | 51 | inkscape:window-y="0" |
52 | inkscape:window-maximized="0" | 52 | inkscape:window-maximized="0" |
53 | inkscape:current-layer="svg2" | 53 | inkscape:current-layer="svg2" |
54 | inkscape:snap-global="true"> | 54 | inkscape:snap-global="true"> |
@@ -106,6 +106,6 @@ | |||
106 | id="path4449" | 106 | id="path4449" |
107 | class="ColorScheme-Text" | 107 | class="ColorScheme-Text" |
108 | d="M 12,4 9.523438,9.265625 4,10.109375 8,14.210938 7.054687,20 12,17.265625 16.945312,20 16,14.210938 20,10.109375 14.476562,9.265625 12,4 Z" | 108 | d="M 12,4 9.523438,9.265625 4,10.109375 8,14.210938 7.054687,20 12,17.265625 16.945312,20 16,14.210938 20,10.109375 14.476562,9.265625 12,4 Z" |
109 | style="color:#4d4d4d;fill:#ffffff;fill-opacity:1;stroke:none" | 109 | style="color:#4d4d4d;fill:#4d4d4d;fill-opacity:1;stroke:none" |
110 | inkscape:connector-curvature="0" /> | 110 | inkscape:connector-curvature="0" /> |
111 | </svg> | 111 | </svg> |