From f8b7fca3671b6458f1fac8e59769920da1e2aaea Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 20 Mar 2017 16:14:36 +0100 Subject: Show the account status next to the account name --- components/mail/contents/ui/Mail.qml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'components/mail/contents/ui') diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml index 528c9073..1ae4062d 100644 --- a/components/mail/contents/ui/Mail.qml +++ b/components/mail/contents/ui/Mail.qml @@ -28,6 +28,7 @@ import org.kube.framework.actions 1.0 as KubeAction import org.kube.framework.settings 1.0 as KubeSettings import org.kube.framework.domain 1.0 as KubeFramework import org.kube.framework.notifications 1.0 as KubeNotifications +import org.kube.framework.accounts 1.0 as KubeAccountsFramework import org.kube.components 1.0 as KubeComponents import org.kube.components.accounts 1.0 as KubeAccounts @@ -270,16 +271,31 @@ Controls2.ApplicationWindow { } } - Text { - anchors { - bottom: parent.bottom - left: parent.left - leftMargin: Kirigami.Units.smallSpacing + Repeater { + model: KubeAccountsFramework.AccountsModel { + accountId: accountSwitcher.accountId } - text: accountSwitcher.accountName - font.weight: Font.DemiBold - color: "white" + RowLayout { + anchors { + bottom: parent.bottom + left: parent.left + leftMargin: Kirigami.Units.smallSpacing + } + Layout.fillHeight: true + + Text { + text: model.name + font.weight: Font.DemiBold + color: "white" + } + + ToolButton { + visible: model.showStatus + iconName: model.statusIcon + enabled: false + } + } } } -- cgit v1.2.3