summaryrefslogtreecommitdiffstats
path: root/components/mail/contents/ui/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/mail/contents/ui/main.qml')
-rw-r--r--components/mail/contents/ui/main.qml54
1 files changed, 34 insertions, 20 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index 88aabf7e..8ee1c794 100644
--- a/components/mail/contents/ui/main.qml
+++ b/components/mail/contents/ui/main.qml
@@ -1,20 +1,20 @@
1/* 1/*
2 Copyright (C) 2015 Michael Bohlender, <michael.bohlender@kdemail.net> 2 * Copyright (C) 2017 Michael Bohlender, <michael.bohlender@kdemail.net>
3 3 *
4 This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or 6 * the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version. 7 * (at your option) any later version.
8 8 *
9 This program is distributed in the hope that it will be useful, 9 * This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 * GNU General Public License for more details.
13 13 *
14 You should have received a copy of the GNU General Public License along 14 * You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc., 15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17*/ 17 */
18 18
19 19
20import QtQuick 2.7 20import QtQuick 2.7
@@ -152,7 +152,9 @@ Controls2.ApplicationWindow {
152 152
153 spacing: Kirigami.Units.largeSpacing 153 spacing: Kirigami.Units.largeSpacing
154 154
155 ToolButton { 155 KubeComponents.AccountSwitcher {
156 id: accountSwitcher
157
156 iconName: "kdenlive-menu" 158 iconName: "kdenlive-menu"
157 height: Kirigami.Units.gridUnit * 1.5 159 height: Kirigami.Units.gridUnit * 1.5
158 width: height 160 width: height
@@ -212,8 +214,8 @@ Controls2.ApplicationWindow {
212 } 214 }
213 } 215 }
214 216
215 KubeComponents.AccountSwitcher { 217 Item {
216 id: accountSwitcher 218 id: accountName
217 219
218 anchors { 220 anchors {
219 top: newMailButton.bottom 221 top: newMailButton.bottom
@@ -222,13 +224,25 @@ Controls2.ApplicationWindow {
222 224
223 width: parent.width 225 width: parent.width
224 height: Kirigami.Units.gridUnit * 2 226 height: Kirigami.Units.gridUnit * 2
227
228 Text {
229 anchors {
230 bottom: parent.bottom
231 left: parent.left
232 leftMargin: Kirigami.Units.smallSpacing
233 }
234
235 text: accountSwitcher.accountName
236 font.weight: Font.DemiBold
237 color: "white"
238 }
225 } 239 }
226 240
227 KubeComponents.FolderListView { 241 KubeComponents.FolderListView {
228 id: folderListView 242 id: folderListView
229 243
230 anchors { 244 anchors {
231 top: accountSwitcher.bottom 245 top: accountName.bottom
232 topMargin: Kirigami.Units.smallSpacing 246 topMargin: Kirigami.Units.smallSpacing
233 bottom: parent.bottom 247 bottom: parent.bottom
234 left: parent.left 248 left: parent.left