From 4564985f3d53c0a3487e53570e6d4a244be4cb6c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 10 May 2017 08:20:00 +0200 Subject: Tried to visually separate the status bar better --- components/kube/contents/ui/MailView.qml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'components') 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 { left: parent.left right: parent.right } + visible: false height: Kube.Units.gridUnit * 2 + Rectangle { + id: border + anchors { + right: parent.right + rightMargin: Kube.Units.smallSpacing + left: parent.left + leftMargin: Kube.Units.smallSpacing + bottomMargin: Kube.Units.smallSpacing + topMargin: Kube.Units.smallSpacing + } + height: 1 + color: Kube.Colors.viewBackgroundColor + opacity: 0.3 + } + Repeater { model: Kube.AccountsModel { accountId: accountFolderview.currentAccount } Column { - anchors.fill: statusBar + anchors { + top: border.bottom + left: statusBar.left + right: statusBar.right + bottom: statusBar.bottom + } spacing: Kube.Units.smallSpacing Kube.Label { id: statusText @@ -90,25 +111,30 @@ SplitView { states: [ State { name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus + PropertyChanges { target: statusBar; visible: true } PropertyChanges { target: statusText; text: "Offline"; visible: true } }, State { name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus + PropertyChanges { target: statusBar; visible: true } PropertyChanges { target: statusText; text: "Busy"; visible: true } PropertyChanges { target: progressBar; visible: true } }, State { name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus + PropertyChanges { target: statusBar; visible: true } PropertyChanges { target: statusText; text: "Error"; visible: true } } ] } Controls2.ProgressBar { id: progressBar + anchors.horizontalCenter: parent.horizontalCenter + height: 3 + width: parent.width - Kube.Units.smallSpacing * 2 + indeterminate: true visible: false - height: Kube.Units.smallSpacing - width: parent.width background: Rectangle { color: Kube.Colors.backgroundColor -- cgit v1.2.3