summaryrefslogtreecommitdiffstats
path: root/framework/qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml')
-rw-r--r--framework/qml/FolderListView.qml35
-rw-r--r--framework/qml/InlineAccountSwitcher.qml37
2 files changed, 7 insertions, 65 deletions
diff --git a/framework/qml/FolderListView.qml b/framework/qml/FolderListView.qml
index bda3683c..3b963022 100644
--- a/framework/qml/FolderListView.qml
+++ b/framework/qml/FolderListView.qml
@@ -130,42 +130,13 @@ TreeView {
130 } 130 }
131 } 131 }
132 132
133 Row { 133 Kube.Label {
134 anchors { 134 anchors {
135 verticalCenter: parent.verticalCenter 135 verticalCenter: parent.verticalCenter
136 left: parent.left 136 left: parent.left
137 } 137 }
138 Kube.Label { 138 text: styleData.value
139 anchors { 139 color: Kube.Colors.viewBackgroundColor
140 verticalCenter: parent.verticalCenter
141 leftMargin: Kube.Units.smallSpacing
142 }
143
144 text: styleData.value
145
146 color: Kube.Colors.viewBackgroundColor
147 }
148 Kube.Icon {
149 id: statusIcon
150 visible: false
151 iconName: ""
152 states: [
153 State {
154 name: "busy"; when: model.status == Kube.FolderListModel.InProgressStatus
155 PropertyChanges { target: statusIcon; iconName: Kube.Icons.busy_inverted ; visible: styleData.selected }
156 },
157 State {
158 name: "error"; when: model.status == Kube.FolderListModel.ErrorStatus
159 //The error status should only be visible for a moment, otherwise we'll eventually always show errors everywhere.
160 PropertyChanges { target: statusIcon; iconName: Kube.Icons.error_inverted; visible: styleData.selected }
161 },
162 State {
163 name: "checkmark"; when: model.status == Kube.FolderListModel.SuccessStatus
164 //The success status should only be visible for a moment, otherwise we'll eventually always show checkmarks everywhere.
165 PropertyChanges { target: statusIcon; iconName: Kube.Icons.success_inverted; visible: styleData.selected}
166 }
167 ]
168 }
169 } 140 }
170 } 141 }
171 142
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