diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-09 18:07:44 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-09 18:07:44 +0200 |
commit | ddf3eec85e18cec7b33d7189d9ba96c527201e27 (patch) | |
tree | aa8a4bac57dac9c36a1edb70def976cc0e57c9e7 /framework/qml/InlineAccountSwitcher.qml | |
parent | 77218b487ac7dafcd166becec75278ab2a87bcc9 (diff) | |
download | kube-ddf3eec85e18cec7b33d7189d9ba96c527201e27.tar.gz kube-ddf3eec85e18cec7b33d7189d9ba96c527201e27.zip |
Got rid of the status icons in folderlist and account switcher
Diffstat (limited to 'framework/qml/InlineAccountSwitcher.qml')
-rw-r--r-- | framework/qml/InlineAccountSwitcher.qml | 37 |
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 | ||