summaryrefslogtreecommitdiffstats
path: root/framework/qml/InlineAccountSwitcher.qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml/InlineAccountSwitcher.qml')
-rw-r--r--framework/qml/InlineAccountSwitcher.qml37
1 files changed, 4 insertions, 33 deletions
diff --git a/framework/qml/InlineAccountSwitcher.qml b/framework/qml/InlineAccountSwitcher.qml
index 65b13ece..c62cab7d 100644
--- a/framework/qml/InlineAccountSwitcher.qml
+++ b/framework/qml/InlineAccountSwitcher.qml
@@ -70,40 +70,11 @@ FocusScope {
70 } 70 }
71 } 71 }
72 72
73 Row { 73 Kube.Label{
74 spacing: Kube.Units.smallSpacing
75 anchors.verticalCenter: parent.verticalCenter 74 anchors.verticalCenter: parent.verticalCenter
76 Layout.fillHeight: true 75 text: model.name
77 76 font.weight: Font.Bold
78 Kube.Label{ 77 color: Kube.Colors.highlightedTextColor
79 text: model.name
80 font.weight: Font.Bold
81 color: Kube.Colors.highlightedTextColor
82 }
83
84 Kube.Icon {
85 id: statusIcon
86 visible: false
87 iconName: ""
88 states: [
89 State {
90 name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus
91 PropertyChanges { target: statusIcon; iconName: Kube.Icons.busy_inverted; visible: true }
92 },
93 State {
94 name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus
95 PropertyChanges { target: statusIcon; iconName: Kube.Icons.error_inverted; visible: true }
96 },
97 State {
98 name: "checkmark"; when: model.status == Kube.AccountsModel.ConnectedStatus
99 PropertyChanges { target: statusIcon; iconName: Kube.Icons.connected_inverted; visible: true }
100 },
101 State {
102 name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus
103 PropertyChanges { target: statusIcon; iconName: Kube.Icons.noNetworkConnection_inverted; visible: true }
104 }
105 ]
106 }
107 } 78 }
108 } 79 }
109 80