diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-30 00:50:59 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-30 00:50:59 +0200 |
commit | 9f9c125ee8ae1bd7df352bc4e3249351c96d2073 (patch) | |
tree | 35819cc79f85e404fce2eafa8c89321816e7ae27 | |
parent | c6249b5f9c8c57c6dbbf314faf54fa051122d7a8 (diff) | |
download | kube-9f9c125ee8ae1bd7df352bc4e3249351c96d2073.tar.gz kube-9f9c125ee8ae1bd7df352bc4e3249351c96d2073.zip |
Use theme
-rw-r--r-- | components/package/contents/ui/AccountSwitcher.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index 8e82dc03..689ace77 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml | |||
@@ -28,6 +28,7 @@ import org.kde.kirigami 1.0 as Kirigami | |||
28 | import org.kube.framework.domain 1.0 as KubeFramework | 28 | import org.kube.framework.domain 1.0 as KubeFramework |
29 | import org.kube.framework.accounts 1.0 as KubeAccounts | 29 | import org.kube.framework.accounts 1.0 as KubeAccounts |
30 | import org.kube.components 1.0 as KubeComponents | 30 | import org.kube.components 1.0 as KubeComponents |
31 | import org.kube.components.theme 1.0 as KubeTheme | ||
31 | 32 | ||
32 | Controls.ToolButton { | 33 | Controls.ToolButton { |
33 | id: accountSwitcher | 34 | id: accountSwitcher |
@@ -170,15 +171,15 @@ Controls.ToolButton { | |||
170 | states: [ | 171 | states: [ |
171 | State { | 172 | State { |
172 | name: "busy"; when: model.status == KubeAccountsFramework.AccountsModel.BusyStatus | 173 | name: "busy"; when: model.status == KubeAccountsFramework.AccountsModel.BusyStatus |
173 | PropertyChanges { target: statusIcon; iconName: "view-refresh"; visible: true } | 174 | PropertyChanges { target: statusIcon; iconName: KubeTheme.Icons.busy; visible: true } |
174 | }, | 175 | }, |
175 | State { | 176 | State { |
176 | name: "error"; when: model.status == KubeAccountsFramework.AccountsModel.ErrorStatus | 177 | name: "error"; when: model.status == KubeAccountsFramework.AccountsModel.ErrorStatus |
177 | PropertyChanges { target: statusIcon; iconName: "emblem-error"; visible: true } | 178 | PropertyChanges { target: statusIcon; iconName: KubeTheme.Icons.error; visible: true } |
178 | }, | 179 | }, |
179 | State { | 180 | State { |
180 | name: "checkmark"; when: model.status == KubeAccountsFramework.AccountsModel.ConnectedStatus | 181 | name: "checkmark"; when: model.status == KubeAccountsFramework.AccountsModel.ConnectedStatus |
181 | PropertyChanges { target: statusIcon; iconName: "checkmark"; visible: true } | 182 | PropertyChanges { target: statusIcon; iconName: KubeTheme.Icons.connected; visible: true } |
182 | } | 183 | } |
183 | ] | 184 | ] |
184 | } | 185 | } |