summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-10 08:20:00 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-10 08:20:00 +0200
commit4564985f3d53c0a3487e53570e6d4a244be4cb6c (patch)
treeae686d28c364b9960afdef2d6d27022e80a81561
parentddf3eec85e18cec7b33d7189d9ba96c527201e27 (diff)
downloadkube-4564985f3d53c0a3487e53570e6d4a244be4cb6c.tar.gz
kube-4564985f3d53c0a3487e53570e6d4a244be4cb6c.zip
Tried to visually separate the status bar better
-rw-r--r--components/kube/contents/ui/MailView.qml32
1 files changed, 29 insertions, 3 deletions
diff --git a/components/kube/contents/ui/MailView.qml b/components/kube/contents/ui/MailView.qml
index 997cbb7a..c40722d0 100644
--- a/components/kube/contents/ui/MailView.qml
+++ b/components/kube/contents/ui/MailView.qml
@@ -71,16 +71,37 @@ SplitView {
71 left: parent.left 71 left: parent.left
72 right: parent.right 72 right: parent.right
73 } 73 }
74 visible: false
74 75
75 height: Kube.Units.gridUnit * 2 76 height: Kube.Units.gridUnit * 2
76 77
78 Rectangle {
79 id: border
80 anchors {
81 right: parent.right
82 rightMargin: Kube.Units.smallSpacing
83 left: parent.left
84 leftMargin: Kube.Units.smallSpacing
85 bottomMargin: Kube.Units.smallSpacing
86 topMargin: Kube.Units.smallSpacing
87 }
88 height: 1
89 color: Kube.Colors.viewBackgroundColor
90 opacity: 0.3
91 }
92
77 Repeater { 93 Repeater {
78 model: Kube.AccountsModel { 94 model: Kube.AccountsModel {
79 accountId: accountFolderview.currentAccount 95 accountId: accountFolderview.currentAccount
80 } 96 }
81 97
82 Column { 98 Column {
83 anchors.fill: statusBar 99 anchors {
100 top: border.bottom
101 left: statusBar.left
102 right: statusBar.right
103 bottom: statusBar.bottom
104 }
84 spacing: Kube.Units.smallSpacing 105 spacing: Kube.Units.smallSpacing
85 Kube.Label { 106 Kube.Label {
86 id: statusText 107 id: statusText
@@ -90,25 +111,30 @@ SplitView {
90 states: [ 111 states: [
91 State { 112 State {
92 name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus 113 name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus
114 PropertyChanges { target: statusBar; visible: true }
93 PropertyChanges { target: statusText; text: "Offline"; visible: true } 115 PropertyChanges { target: statusText; text: "Offline"; visible: true }
94 }, 116 },
95 State { 117 State {
96 name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus 118 name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus
119 PropertyChanges { target: statusBar; visible: true }
97 PropertyChanges { target: statusText; text: "Busy"; visible: true } 120 PropertyChanges { target: statusText; text: "Busy"; visible: true }
98 PropertyChanges { target: progressBar; visible: true } 121 PropertyChanges { target: progressBar; visible: true }
99 }, 122 },
100 State { 123 State {
101 name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus 124 name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus
125 PropertyChanges { target: statusBar; visible: true }
102 PropertyChanges { target: statusText; text: "Error"; visible: true } 126 PropertyChanges { target: statusText; text: "Error"; visible: true }
103 } 127 }
104 ] 128 ]
105 } 129 }
106 Controls2.ProgressBar { 130 Controls2.ProgressBar {
107 id: progressBar 131 id: progressBar
132 anchors.horizontalCenter: parent.horizontalCenter
133 height: 3
134 width: parent.width - Kube.Units.smallSpacing * 2
135
108 indeterminate: true 136 indeterminate: true
109 visible: false 137 visible: false
110 height: Kube.Units.smallSpacing
111 width: parent.width
112 138
113 background: Rectangle { 139 background: Rectangle {
114 color: Kube.Colors.backgroundColor 140 color: Kube.Colors.backgroundColor