summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-04-06 10:10:44 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-04-06 10:10:44 +0200
commit00cd3cf3ee0018a257517ed141466e44dd6c2ea3 (patch)
treeea8f5894933f9f535d731ae44b762cf3e976c2ac
parentda810306662140ca9fd1ab7509f4c084e9d27337 (diff)
downloadkube-00cd3cf3ee0018a257517ed141466e44dd6c2ea3.tar.gz
kube-00cd3cf3ee0018a257517ed141466e44dd6c2ea3.zip
use inverted status icons in folder/account column
-rw-r--r--components/kube/contents/ui/Kube.qml8
-rw-r--r--framework/qml/Icons.qml7
2 files changed, 9 insertions, 6 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml
index 2b3c78b0..598cc6bc 100644
--- a/components/kube/contents/ui/Kube.qml
+++ b/components/kube/contents/ui/Kube.qml
@@ -236,19 +236,19 @@ Controls2.ApplicationWindow {
236 states: [ 236 states: [
237 State { 237 State {
238 name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus 238 name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus
239 PropertyChanges { target: statusIcon; iconName: Kube.Icons.busy; visible: true } 239 PropertyChanges { target: statusIcon; iconName: Kube.Icons.busy_inverted; visible: true }
240 }, 240 },
241 State { 241 State {
242 name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus 242 name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus
243 PropertyChanges { target: statusIcon; iconName: Kube.Icons.error; visible: true } 243 PropertyChanges { target: statusIcon; iconName: Kube.Icons.error_inverted; visible: true }
244 }, 244 },
245 State { 245 State {
246 name: "checkmark"; when: model.status == Kube.AccountsModel.ConnectedStatus 246 name: "checkmark"; when: model.status == Kube.AccountsModel.ConnectedStatus
247 PropertyChanges { target: statusIcon; iconName: Kube.Icons.connected; visible: true } 247 PropertyChanges { target: statusIcon; iconName: Kube.Icons.connected_inverted; visible: true }
248 }, 248 },
249 State { 249 State {
250 name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus 250 name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus
251 PropertyChanges { target: statusIcon; iconName: Kube.Icons.noNetworkConnection; visible: true } 251 PropertyChanges { target: statusIcon; iconName: Kube.Icons.noNetworkConnection_inverted; visible: true }
252 } 252 }
253 ] 253 ]
254 } 254 }
diff --git a/framework/qml/Icons.qml b/framework/qml/Icons.qml
index bd088525..bed45523 100644
--- a/framework/qml/Icons.qml
+++ b/framework/qml/Icons.qml
@@ -23,10 +23,13 @@ import QtQuick 2.7
23 23
24Item { 24Item {
25 property string error: "error" 25 property string error: "error"
26 property string error_inverted: "error-inverted"
26 property string busy: "view-refresh" 27 property string busy: "view-refresh"
27 property string noNetworkConnection: "network-disconnect" 28 property string busy_inverted: "view-refresh-inverted"
29 property string noNetworkConnection_inverted: "network-disconnect-inverted"
28 property string connected: "dialog-ok" 30 property string connected: "dialog-ok"
29 property string success: "dialog-ok" 31 property string connected_inverted: "dialog-ok-inverted"
32 property string success_inverted: "dialog-ok-inverted"
30 33
31 property string markAsRead: "mail-mark-unread-new" 34 property string markAsRead: "mail-mark-unread-new"
32 property string markImportant: "mail-mark-important" 35 property string markImportant: "mail-mark-important"