on xenial help sign in
Use just one image
commit316df0083df9ed84f0c53804935f1f737ed64c24 authorAlbert Astals <albert.astals@canonical.com> dateThu 19 Jun 2014, 12:11 (12 years ago) parentcbed9e7
1 file changed+2−14
qml/Dash/DashDepartmentsList.qml+2−14
qml/Dash/DashDepartmentsList.qml+2−14
@@ -165,23 +165,11 @@ Item {
165165 right: parent.right
166166 rightMargin: units.gu(2)
167167 }
168− source: "image://theme/chevron"
168+ source: hasChildren ? "image://theme/chevron" : "graphics/tick.png"
169169 sourceSize.height: parent.height - units.gu(3)
170170 sourceSize.width: units.gu(3)
171171 fillMode: Image.PreserveAspectFit
172− visible: hasChildren
173− }
174− Image {
175− anchors {
176− verticalCenter: parent.verticalCenter
177− right: parent.right
178− rightMargin: units.gu(2)
179− }
180− source: "graphics/tick.png"
181− sourceSize.height: parent.height - units.gu(2)
182− sourceSize.width: units.gu(3)
183− fillMode: Image.PreserveAspectFit
184− visible: !hasChildren && isActive
172+ visible: hasChildren || isActive
185173 }
186174
187175 Rectangle {