diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-06 09:37:47 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-04-06 09:37:47 +0200 |
commit | da810306662140ca9fd1ab7509f4c084e9d27337 (patch) | |
tree | 375003f6657ac21859585a2e11a70c51248820ef | |
parent | 8cc436225819b3b255f44a48e0cf91462b6efe8a (diff) | |
download | kube-da810306662140ca9fd1ab7509f4c084e9d27337.tar.gz kube-da810306662140ca9fd1ab7509f4c084e9d27337.zip |
invert toolbar icons and move it to the bottom. adjust accout swithcer accordingly
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 95 | ||||
-rw-r--r-- | framework/qml/AccountSwitcher.qml | 3 | ||||
-rw-r--r-- | framework/qml/Icons.qml | 6 |
3 files changed, 53 insertions, 51 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 7cabf9a9..2b3c78b0 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -152,61 +152,18 @@ Controls2.ApplicationWindow { | |||
152 | height: app.height | 152 | height: app.height |
153 | width: app.width | 153 | width: app.width |
154 | 154 | ||
155 | Rectangle { | 155 | Rectangle { |
156 | width: Kube.Units.gridUnit * 10 | 156 | width: Kube.Units.gridUnit * 10 |
157 | Layout.maximumWidth: app.width * 0.25 | 157 | Layout.maximumWidth: app.width * 0.25 |
158 | Layout.minimumWidth: Kube.Units.gridUnit * 5 | 158 | Layout.minimumWidth: Kube.Units.gridUnit * 5 |
159 | 159 | ||
160 | color: Kube.Colors.textColor | 160 | color: Kube.Colors.textColor |
161 | 161 | ||
162 | Controls2.ToolBar { | ||
163 | id: toolBar | ||
164 | |||
165 | anchors { | ||
166 | top: parent.top | ||
167 | left: parent.left | ||
168 | right: parent.right | ||
169 | } | ||
170 | |||
171 | RowLayout { | ||
172 | anchors.centerIn: parent | ||
173 | |||
174 | spacing: Kube.Units.largeSpacing | ||
175 | |||
176 | Kube.AccountSwitcher { | ||
177 | id: accountSwitcher | ||
178 | iconName: Kube.Icons.menu | ||
179 | height: Kube.Units.gridUnit * 1.5 | ||
180 | width: height | ||
181 | } | ||
182 | |||
183 | ToolButton { | ||
184 | iconName: Kube.Icons.user | ||
185 | height: Kube.Units.gridUnit * 1.5 | ||
186 | width: height | ||
187 | |||
188 | onClicked: { | ||
189 | people.open() | ||
190 | } | ||
191 | } | ||
192 | |||
193 | ToolButton { | ||
194 | iconName: Kube.Icons.search | ||
195 | height: Kube.Units.gridUnit * 1.5 | ||
196 | width: height | ||
197 | |||
198 | onClicked: { | ||
199 | search.open() | ||
200 | } | ||
201 | } | ||
202 | } | ||
203 | } | ||
204 | |||
205 | Kube.PositiveButton { | 162 | Kube.PositiveButton { |
206 | id: newMailButton | 163 | id: newMailButton |
207 | 164 | ||
208 | anchors { | 165 | anchors { |
209 | top: toolBar.bottom | 166 | top: parent.top |
210 | left: parent.left | 167 | left: parent.left |
211 | right: parent.right | 168 | right: parent.right |
212 | margins: Kube.Units.largeSpacing | 169 | margins: Kube.Units.largeSpacing |
@@ -346,12 +303,58 @@ Controls2.ApplicationWindow { | |||
346 | id: outbox | 303 | id: outbox |
347 | 304 | ||
348 | anchors { | 305 | anchors { |
349 | bottom: parent.bottom | 306 | bottom: toolBar.top |
350 | left: parent.left | 307 | left: parent.left |
351 | right: parent.right | 308 | right: parent.right |
352 | } | 309 | } |
353 | height: Kube.Units.gridUnit * 1.5 | 310 | height: Kube.Units.gridUnit * 1.5 |
354 | } | 311 | } |
312 | |||
313 | |||
314 | Item { | ||
315 | id: toolBar | ||
316 | |||
317 | anchors { | ||
318 | bottom: parent.bottom | ||
319 | left: parent.left | ||
320 | right: parent.right | ||
321 | } | ||
322 | height: Kube.Units.gridUnit * 2 | ||
323 | |||
324 | RowLayout { | ||
325 | anchors.centerIn: parent | ||
326 | |||
327 | spacing: Kube.Units.largeSpacing | ||
328 | |||
329 | Kube.AccountSwitcher { | ||
330 | id: accountSwitcher | ||
331 | iconName: Kube.Icons.menu_inverted | ||
332 | height: Kube.Units.gridUnit * 1.5 | ||
333 | width: height | ||
334 | } | ||
335 | |||
336 | ToolButton { | ||
337 | iconName: Kube.Icons.user_inverted | ||
338 | height: Kube.Units.gridUnit * 1.5 | ||
339 | width: height | ||
340 | |||
341 | onClicked: { | ||
342 | people.open() | ||
343 | } | ||
344 | } | ||
345 | |||
346 | ToolButton { | ||
347 | iconName: Kube.Icons.search_inverted | ||
348 | height: Kube.Units.gridUnit * 1.5 | ||
349 | width: height | ||
350 | |||
351 | onClicked: { | ||
352 | search.open() | ||
353 | } | ||
354 | } | ||
355 | } | ||
356 | } | ||
357 | |||
355 | } | 358 | } |
356 | 359 | ||
357 | Kube.MailListView { | 360 | Kube.MailListView { |
diff --git a/framework/qml/AccountSwitcher.qml b/framework/qml/AccountSwitcher.qml index dd33c940..2c5d572e 100644 --- a/framework/qml/AccountSwitcher.qml +++ b/framework/qml/AccountSwitcher.qml | |||
@@ -44,7 +44,6 @@ Controls.ToolButton { | |||
44 | id: accountsModel | 44 | id: accountsModel |
45 | } | 45 | } |
46 | 46 | ||
47 | |||
48 | onClicked: { | 47 | onClicked: { |
49 | popup.open() | 48 | popup.open() |
50 | } | 49 | } |
@@ -55,7 +54,7 @@ Controls.ToolButton { | |||
55 | height: listView.count == 0 ? Kirigami.Units.gridUnit * 4 : Kirigami.Units.gridUnit * 2 + listView.count * Kirigami.Units.gridUnit * 3 | 54 | height: listView.count == 0 ? Kirigami.Units.gridUnit * 4 : Kirigami.Units.gridUnit * 2 + listView.count * Kirigami.Units.gridUnit * 3 |
56 | width: Kirigami.Units.gridUnit * 20 | 55 | width: Kirigami.Units.gridUnit * 20 |
57 | 56 | ||
58 | y: accountSwitcher.height | 57 | y: accountSwitcher.y - height |
59 | 58 | ||
60 | modal: true | 59 | modal: true |
61 | focus: true | 60 | focus: true |
diff --git a/framework/qml/Icons.qml b/framework/qml/Icons.qml index 0b161635..bd088525 100644 --- a/framework/qml/Icons.qml +++ b/framework/qml/Icons.qml | |||
@@ -35,9 +35,9 @@ Item { | |||
35 | property string edit: "document-edit" | 35 | property string edit: "document-edit" |
36 | property string replyToSender: "mail-reply-sender" | 36 | property string replyToSender: "mail-reply-sender" |
37 | 37 | ||
38 | property string menu: "application-menu" | 38 | property string menu_inverted: "application-menu-inverted" |
39 | property string user: "im-user" | 39 | property string user_inverted: "im-user-inverted" |
40 | property string search: "edit-find" | 40 | property string search_inverted: "edit-find-inverted" |
41 | property string goBack: "go-previous" | 41 | property string goBack: "go-previous" |
42 | property string goDown: "go-down" | 42 | property string goDown: "go-down" |
43 | property string goUp: "go-down" | 43 | property string goUp: "go-down" |