diff options
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 26 | ||||
-rw-r--r-- | framework/qml/Icons.qml | 2 | ||||
-rw-r--r-- | framework/qml/Outbox.qml | 38 | ||||
-rw-r--r-- | icons/breeze/icons/places/16/mail-folder-outbox-inverted.svg | 13 | ||||
-rw-r--r-- | icons/breeze/icons/places/16/mail-folder-outbox.svg | 13 | ||||
-rw-r--r-- | icons/breeze/icons/places/22/mail-folder-outbox-inverted.svg | 13 | ||||
-rw-r--r-- | icons/breeze/icons/places/22/mail-folder-outbox.svg | 13 | ||||
-rwxr-xr-x | icons/copybreeze.sh | 1 |
8 files changed, 83 insertions, 36 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index e6dd7db1..8537dba2 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -179,6 +179,19 @@ Controls2.ApplicationWindow { | |||
179 | width: height | 179 | width: height |
180 | } | 180 | } |
181 | } | 181 | } |
182 | Column { | ||
183 | anchors { | ||
184 | bottom: parent.bottom | ||
185 | bottomMargin: Kube.Units.smallSpacing | ||
186 | horizontalCenter: parent.horizontalCenter | ||
187 | } | ||
188 | |||
189 | spacing: Kube.Units.largeSpacing - Kube.Units.smallSpacing | ||
190 | Kube.Outbox { | ||
191 | height: Kube.Units.gridUnit * 1.5 | ||
192 | width: height | ||
193 | } | ||
194 | } | ||
182 | } | 195 | } |
183 | 196 | ||
184 | SplitView { | 197 | SplitView { |
@@ -222,7 +235,7 @@ Controls2.ApplicationWindow { | |||
222 | width: parent.width - Kube.Units.largeSpacing | 235 | width: parent.width - Kube.Units.largeSpacing |
223 | } | 236 | } |
224 | } | 237 | } |
225 | //TODO bring back status bar and outbox | 238 | //TODO bring back status bar |
226 | // Item { | 239 | // Item { |
227 | // id: statusBar | 240 | // id: statusBar |
228 | // anchors { | 241 | // anchors { |
@@ -250,17 +263,6 @@ Controls2.ApplicationWindow { | |||
250 | // } | 263 | // } |
251 | // } | 264 | // } |
252 | // } | 265 | // } |
253 | // | ||
254 | // Kube.Outbox { | ||
255 | // id: outbox | ||
256 | // | ||
257 | // anchors { | ||
258 | // bottom: toolBar.top | ||
259 | // left: parent.left | ||
260 | // right: parent.right | ||
261 | // } | ||
262 | // height: Kube.Units.gridUnit * 1.5 | ||
263 | // } | ||
264 | 266 | ||
265 | Kube.MailListView { | 267 | Kube.MailListView { |
266 | id: mailListView | 268 | id: mailListView |
diff --git a/framework/qml/Icons.qml b/framework/qml/Icons.qml index 8d63f021..ee706d95 100644 --- a/framework/qml/Icons.qml +++ b/framework/qml/Icons.qml | |||
@@ -39,6 +39,8 @@ Item { | |||
39 | property string moveToTrash: "edit-delete" | 39 | property string moveToTrash: "edit-delete" |
40 | property string edit: "document-edit" | 40 | property string edit: "document-edit" |
41 | property string replyToSender: "mail-reply-sender" | 41 | property string replyToSender: "mail-reply-sender" |
42 | property string outbox: "mail-folder-outbox" | ||
43 | property string outbox_inverted: "mail-folder-outbox-inverted" | ||
42 | 44 | ||
43 | property string menu_inverted: "application-menu-inverted" | 45 | property string menu_inverted: "application-menu-inverted" |
44 | property string user_inverted: "im-user-inverted" | 46 | property string user_inverted: "im-user-inverted" |
diff --git a/framework/qml/Outbox.qml b/framework/qml/Outbox.qml index 43d0f102..fc960667 100644 --- a/framework/qml/Outbox.qml +++ b/framework/qml/Outbox.qml | |||
@@ -25,7 +25,7 @@ import org.kde.kirigami 1.0 as Kirigami | |||
25 | import org.kube.framework 1.0 as Kube | 25 | import org.kube.framework 1.0 as Kube |
26 | 26 | ||
27 | 27 | ||
28 | Rectangle { | 28 | Controls.ToolButton { |
29 | id: root | 29 | id: root |
30 | 30 | ||
31 | visible: outboxModel.count > 0 | 31 | visible: outboxModel.count > 0 |
@@ -36,42 +36,32 @@ Rectangle { | |||
36 | Kube.OutboxModel { | 36 | Kube.OutboxModel { |
37 | id: outboxModel | 37 | id: outboxModel |
38 | } | 38 | } |
39 | iconName: Kube.Icons.outbox | ||
39 | 40 | ||
40 | states: [ | 41 | states: [ |
41 | State { | 42 | State { |
42 | name: "busy"; when: outboxModel.status == Kube.OutboxModel.InProgressStatus | 43 | name: "busy"; when: outboxModel.status == Kube.OutboxModel.InProgressStatus |
43 | PropertyChanges { target: icon; iconName: Kube.Icons.busy_inverted } | 44 | PropertyChanges { target: root; iconName: Kube.Icons.busy_inverted } |
44 | }, | 45 | }, |
45 | State { | 46 | State { |
46 | name: "error"; when: outboxModel.status == Kube.OutboxModel.ErrorStatus | 47 | name: "error"; when: outboxModel.status == Kube.OutboxModel.ErrorStatus |
47 | PropertyChanges { target: icon; iconName: Kube.Icons.error_inverted } | 48 | PropertyChanges { target: root; iconName: Kube.Icons.error_inverted } |
48 | } | 49 | } |
49 | ] | 50 | ] |
50 | 51 | ||
51 | color: Kube.Colors.textColor | 52 | Kube.Label { |
52 | clip: true | 53 | id: text |
53 | 54 | anchors { | |
54 | Row { | 55 | right: parent.right |
55 | anchors.centerIn: parent | 56 | bottom: parent.bottom |
56 | spacing: Kube.Units.smallSpacing | ||
57 | Kube.Label { | ||
58 | id: text | ||
59 | anchors.verticalCenter: parent.verticalCenter | ||
60 | text: outboxModel.count > 0 ? "Pending (" + outboxModel.count + ")" : "Outbox" | ||
61 | color: Kube.Colors.highlightedTextColor | ||
62 | } | ||
63 | Icon { | ||
64 | id: icon | ||
65 | anchors.verticalCenter: parent.verticalCenter | ||
66 | iconName: "" | ||
67 | visible: iconName != "" | ||
68 | } | 57 | } |
58 | width: Kube.Units.smallSpacing | ||
59 | text: outboxModel.count | ||
60 | color: Kube.Colors.disabledTextColor | ||
61 | font.pointSize: 9 | ||
69 | } | 62 | } |
70 | 63 | ||
71 | MouseArea { | 64 | onClicked: dialog.open() |
72 | anchors.fill: parent | ||
73 | onClicked: dialog.open() | ||
74 | } | ||
75 | 65 | ||
76 | Kube.Popup { | 66 | Kube.Popup { |
77 | id: dialog | 67 | id: dialog |
diff --git a/icons/breeze/icons/places/16/mail-folder-outbox-inverted.svg b/icons/breeze/icons/places/16/mail-folder-outbox-inverted.svg new file mode 100644 index 00000000..bd677de8 --- /dev/null +++ b/icons/breeze/icons/places/16/mail-folder-outbox-inverted.svg | |||
@@ -0,0 +1,13 @@ | |||
1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> | ||
2 | <defs id="defs3051"> | ||
3 | <style type="text/css" id="current-color-scheme"> | ||
4 | .ColorScheme-Text { | ||
5 | color:#f2f2f2; | ||
6 | } | ||
7 | </style> | ||
8 | </defs> | ||
9 | <path | ||
10 | style="fill:currentColor;fill-opacity:1;stroke:none" | ||
11 | d="M 8 2 L 5 5 L 7 5 L 7 7 L 9 7 L 9 5 L 10 5 L 11 5 L 8 2 z M 3.8828125 6 L 1 10.994141 L 1 11.003906 L 1 12.996094 L 1 14.003906 L 4 14.003906 L 15 14.003906 L 15 13.003906 L 15 11.011719 L 15 11.001953 L 12.117188 6.0078125 L 12 6.0078125 L 10 6.0078125 L 10 7 L 11.539062 7 L 13.847656 11 L 12 11 L 11 12 L 5 12 L 4 11 L 2.1503906 11 L 4.4589844 7 L 6 7 L 6 6.0078125 L 5.0371094 6.0078125 L 3.8828125 6.0078125 L 3.8828125 6 z M 2 1041.3613 L 2 1042.3613 L 7 1042.3613 L 7 1044.3613 L 9 1044.3613 L 9 1042.3613 L 9 1041.3613 L 2 1041.3613 z " | ||
12 | class="ColorScheme-Text"/> | ||
13 | </svg> | ||
diff --git a/icons/breeze/icons/places/16/mail-folder-outbox.svg b/icons/breeze/icons/places/16/mail-folder-outbox.svg new file mode 100644 index 00000000..b0fbba26 --- /dev/null +++ b/icons/breeze/icons/places/16/mail-folder-outbox.svg | |||
@@ -0,0 +1,13 @@ | |||
1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> | ||
2 | <defs id="defs3051"> | ||
3 | <style type="text/css" id="current-color-scheme"> | ||
4 | .ColorScheme-Text { | ||
5 | color:#4d4d4d; | ||
6 | } | ||
7 | </style> | ||
8 | </defs> | ||
9 | <path | ||
10 | style="fill:currentColor;fill-opacity:1;stroke:none" | ||
11 | d="M 8 2 L 5 5 L 7 5 L 7 7 L 9 7 L 9 5 L 10 5 L 11 5 L 8 2 z M 3.8828125 6 L 1 10.994141 L 1 11.003906 L 1 12.996094 L 1 14.003906 L 4 14.003906 L 15 14.003906 L 15 13.003906 L 15 11.011719 L 15 11.001953 L 12.117188 6.0078125 L 12 6.0078125 L 10 6.0078125 L 10 7 L 11.539062 7 L 13.847656 11 L 12 11 L 11 12 L 5 12 L 4 11 L 2.1503906 11 L 4.4589844 7 L 6 7 L 6 6.0078125 L 5.0371094 6.0078125 L 3.8828125 6.0078125 L 3.8828125 6 z M 2 1041.3613 L 2 1042.3613 L 7 1042.3613 L 7 1044.3613 L 9 1044.3613 L 9 1042.3613 L 9 1041.3613 L 2 1041.3613 z " | ||
12 | class="ColorScheme-Text"/> | ||
13 | </svg> | ||
diff --git a/icons/breeze/icons/places/22/mail-folder-outbox-inverted.svg b/icons/breeze/icons/places/22/mail-folder-outbox-inverted.svg new file mode 100644 index 00000000..4598bc14 --- /dev/null +++ b/icons/breeze/icons/places/22/mail-folder-outbox-inverted.svg | |||
@@ -0,0 +1,13 @@ | |||
1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"> | ||
2 | <defs id="defs3051"> | ||
3 | <style type="text/css" id="current-color-scheme"> | ||
4 | .ColorScheme-Text { | ||
5 | color:#f2f2f2 | ||
6 | } | ||
7 | </style> | ||
8 | </defs> | ||
9 | <path | ||
10 | style="fill:currentColor;fill-opacity:1;stroke:none" | ||
11 | d="M 11 3 L 7 7 L 9.75 7 L 9.75 10 L 12.25 10 L 12.25 7 L 15 7 L 11 3 z M 5.9550781 8 L 2 14.849609 L 2 16.310547 L 2 19 L 6 19 L 16 19 L 20 19 L 20 16.310547 L 20 14.849609 L 16.044922 8 L 16 8 L 13 8 L 13 9 L 15.46875 9 L 18.933594 15 L 16 15 L 15 17 L 7 17 L 6 15 L 3.0664062 15 L 6.53125 9 L 9 9 L 9 8 L 7.109375 8 L 5.9550781 8 z " | ||
12 | class="ColorScheme-Text" /> | ||
13 | </svg> | ||
diff --git a/icons/breeze/icons/places/22/mail-folder-outbox.svg b/icons/breeze/icons/places/22/mail-folder-outbox.svg new file mode 100644 index 00000000..239bc187 --- /dev/null +++ b/icons/breeze/icons/places/22/mail-folder-outbox.svg | |||
@@ -0,0 +1,13 @@ | |||
1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"> | ||
2 | <defs id="defs3051"> | ||
3 | <style type="text/css" id="current-color-scheme"> | ||
4 | .ColorScheme-Text { | ||
5 | color:#4d4d4d | ||
6 | } | ||
7 | </style> | ||
8 | </defs> | ||
9 | <path | ||
10 | style="fill:currentColor;fill-opacity:1;stroke:none" | ||
11 | d="M 11 3 L 7 7 L 9.75 7 L 9.75 10 L 12.25 10 L 12.25 7 L 15 7 L 11 3 z M 5.9550781 8 L 2 14.849609 L 2 16.310547 L 2 19 L 6 19 L 16 19 L 20 19 L 20 16.310547 L 20 14.849609 L 16.044922 8 L 16 8 L 13 8 L 13 9 L 15.46875 9 L 18.933594 15 L 16 15 L 15 17 L 7 17 L 6 15 L 3.0664062 15 L 6.53125 9 L 9 9 L 9 8 L 7.109375 8 L 5.9550781 8 z " | ||
12 | class="ColorScheme-Text" /> | ||
13 | </svg> | ||
diff --git a/icons/copybreeze.sh b/icons/copybreeze.sh index 6c6d8103..2d13c1f6 100755 --- a/icons/copybreeze.sh +++ b/icons/copybreeze.sh | |||
@@ -22,6 +22,7 @@ wantedIcons = [ | |||
22 | "mail-mark-important.svg", | 22 | "mail-mark-important.svg", |
23 | "mail-mark-unread-new.svg", | 23 | "mail-mark-unread-new.svg", |
24 | "mail-reply-sender.svg", | 24 | "mail-reply-sender.svg", |
25 | "mail-folder-outbox.svg", | ||
25 | "network-disconnect.svg", | 26 | "network-disconnect.svg", |
26 | "view-refresh.svg", | 27 | "view-refresh.svg", |
27 | "go-down.svg", | 28 | "go-down.svg", |