summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-04-06 09:37:47 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-04-06 09:37:47 +0200
commitda810306662140ca9fd1ab7509f4c084e9d27337 (patch)
tree375003f6657ac21859585a2e11a70c51248820ef /components
parent8cc436225819b3b255f44a48e0cf91462b6efe8a (diff)
downloadkube-da810306662140ca9fd1ab7509f4c084e9d27337.tar.gz
kube-da810306662140ca9fd1ab7509f4c084e9d27337.zip
invert toolbar icons and move it to the bottom. adjust accout swithcer accordingly
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/Kube.qml95
1 files changed, 49 insertions, 46 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 {