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/FolderListView.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/FolderListView.qml')
-rw-r--r-- | framework/qml/FolderListView.qml | 35 |
1 files changed, 3 insertions, 32 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 | ||