summaryrefslogtreecommitdiffstats
path: root/components/mail/contents/ui/Mail.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/mail/contents/ui/Mail.qml')
-rw-r--r--components/mail/contents/ui/Mail.qml43
1 files changed, 37 insertions, 6 deletions
diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml
index 04820d54..a2b25035 100644
--- a/components/mail/contents/ui/Mail.qml
+++ b/components/mail/contents/ui/Mail.qml
@@ -114,6 +114,12 @@ Controls2.ApplicationWindow {
114 } 114 }
115 } 115 }
116 116
117 //Model
118 KubeAccountsFramework.AccountsModel {
119 id: currentAccountModel
120 accountId: accountSwitcher.accountId
121 }
122
117 //BEGIN Shortcuts 123 //BEGIN Shortcuts
118 Shortcut { 124 Shortcut {
119 sequence: StandardKey.Refresh 125 sequence: StandardKey.Refresh
@@ -273,11 +279,8 @@ Controls2.ApplicationWindow {
273 } 279 }
274 280
275 Repeater { 281 Repeater {
276 model: KubeAccountsFramework.AccountsModel { 282 model: currentAccountModel
277 accountId: accountSwitcher.accountId 283 Row {
278 }
279
280 RowLayout {
281 anchors { 284 anchors {
282 bottom: parent.bottom 285 bottom: parent.bottom
283 left: parent.left 286 left: parent.left
@@ -325,7 +328,7 @@ Controls2.ApplicationWindow {
325 anchors { 328 anchors {
326 top: accountName.bottom 329 top: accountName.bottom
327 topMargin: Kirigami.Units.smallSpacing 330 topMargin: Kirigami.Units.smallSpacing
328 bottom: outbox.top 331 bottom: statusBar.top
329 left: parent.left 332 left: parent.left
330 right: parent.right 333 right: parent.right
331 } 334 }
@@ -334,6 +337,34 @@ Controls2.ApplicationWindow {
334 accountId: accountSwitcher.accountId 337 accountId: accountSwitcher.accountId
335 } 338 }
336 339
340 Item {
341 id: statusBar
342 anchors {
343 topMargin: Kirigami.Units.smallSpacing
344 bottom: outbox.top
345 left: parent.left
346 right: parent.right
347 }
348
349 height: Kirigami.Units.gridUnit * 1
350
351 Repeater {
352 model: currentAccountModel
353 Text {
354 id: statusText
355 anchors.centerIn: parent
356 visible: false
357 color: KubeTheme.Colors.textColor
358 states: [
359 State {
360 name: "disconnected"; when: model.status == KubeAccountsFramework.AccountsModel.OfflineStatus
361 PropertyChanges { target: statusText; text: "Offline"; visible: true }
362 }
363 ]
364 }
365 }
366 }
367
337 KubeComponents.Outbox { 368 KubeComponents.Outbox {
338 id: outbox 369 id: outbox
339 370