summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-01-19 09:19:02 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-01-19 09:19:02 +0100
commit876c24223869f2dac1006c503575016c3e384919 (patch)
tree46889502c836cd9c6c4e696397d78bbc5578210c
parent87261220a8386cb38a7dc228814850182294b01d (diff)
downloadkube-876c24223869f2dac1006c503575016c3e384919.tar.gz
kube-876c24223869f2dac1006c503575016c3e384919.zip
move app switcher to the top
-rw-r--r--components/mail/contents/ui/main.qml73
1 files changed, 32 insertions, 41 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index ed10fa45..c79a656b 100644
--- a/components/mail/contents/ui/main.qml
+++ b/components/mail/contents/ui/main.qml
@@ -139,17 +139,42 @@ Controls2.ApplicationWindow {
139 139
140 color: Kirigami.Theme.textColor 140 color: Kirigami.Theme.textColor
141 141
142 Controls2.Button { 142 Controls2.ToolBar {
143 id: newMailButton 143 id: toolBar
144 144
145 anchors { 145 anchors {
146 top: parent.top 146 top: parent.top
147 left: parent.left 147 left: parent.left
148 right: parent.right 148 right: parent.right
149 margins: Kirigami.Units.smallSpacing
150 } 149 }
151 150
152 height: Kirigami.Units.gridUnit * 1.5 151 RowLayout {
152 anchors.centerIn: parent
153
154 spacing: Kirigami.Units.largeSpacing
155
156 ToolButton {
157 iconName: "mail-message"
158 height: Kirigami.Units.gridUnit * 1.5
159 width: height
160 }
161
162 ToolButton {
163 iconName: "user"
164 height: Kirigami.Units.gridUnit * 1.5
165 width: height
166 }
167 }
168 }
169
170 Controls2.Button {
171 id: newMailButton
172
173 anchors {
174 top: toolBar.bottom
175 topMargin: Kirigami.Units.smallSpacing
176 horizontalCenter: parent.horizontalCenter
177 }
153 178
154 text: " " + qsTr("New Email") + " " 179 text: " " + qsTr("New Email") + " "
155 //iconName: "mail-message-new" 180 //iconName: "mail-message-new"
@@ -165,58 +190,24 @@ Controls2.ApplicationWindow {
165 190
166 anchors { 191 anchors {
167 top: newMailButton.bottom 192 top: newMailButton.bottom
193 topMargin: Kirigami.Units.smallSpacing
168 bottom: accountSwitcher.top 194 bottom: accountSwitcher.top
169 left: parent.left 195 left: parent.left
170 right: parent.right 196 right: parent.right
171 topMargin: Kirigami.Units.smallSpacing
172 } 197 }
173 198
174 focus: true 199 focus: true
175 accountId: accountSwitcher.accountId 200 accountId: accountSwitcher.accountId
176 } 201 }
202
177 KubeComponents.AccountSwitcher { 203 KubeComponents.AccountSwitcher {
178 id: accountSwitcher 204 id: accountSwitcher
179 205
180 anchors.bottom: appSwitcher.top 206 anchors.bottom: parent.bottom
181 207
182 width: parent.width 208 width: parent.width
183 height: Kirigami.Units.gridUnit * 2 209 height: Kirigami.Units.gridUnit * 2
184 } 210 }
185
186 Item {
187 id: appSwitcher
188
189 anchors {
190 bottom: parent.bottom
191 }
192
193 width: parent.width
194 height: Kirigami.Units.gridUnit * 2
195
196 RowLayout {
197 anchors.centerIn: parent
198
199 spacing: Kirigami.Units.largeSpacing
200
201 ToolButton {
202 iconName: "mail-message"
203 height: Kirigami.Units.gridUnit * 1.5
204 width: height
205 }
206
207 ToolButton {
208 iconName: "user"
209 height: Kirigami.Units.gridUnit * 1.5
210 width: height
211 }
212
213 ToolButton {
214 iconName: "configure"
215 height: Kirigami.Units.gridUnit * 1.5
216 width: height
217 }
218 }
219 }
220 } 211 }
221 212
222 KubeComponents.MailListView { 213 KubeComponents.MailListView {