on xenial help sign in
sourceSize for svn + tick as png
commit7d7c622b036b36a6c4611081bf35f03532817b79 authorAlbert Astals <albert.astals@canonical.com> dateWed 28 May 2014, 11:23 (12 years ago) parenta277802
3 files changed+13−8
qml/Dash/DashDepartments.qml+2−1 qml/Dash/DashDepartmentsList.qml+11−7 qml/Dash/graphics/tick@30.png
qml/Dash/DashDepartments.qml+2−1
@@ -83,7 +83,8 @@ AbstractButton {
8383 anchors.rightMargin: units.gu(2)
8484 rotation: showList ? 180 : 0
8585 source: "image://theme/dropdown-menu"
86− height: parent.height - units.gu(2)
86+ sourceSize.height: parent.height - units.gu(2)
87+ sourceSize.width: units.gu(3)
8788 fillMode: Image.PreserveAspectFit
8889 }
8990
qml/Dash/DashDepartmentsList.qml+11−7
@@ -69,7 +69,8 @@ Item {
6969 anchors.left: parent.left
7070 anchors.leftMargin: units.gu(2)
7171 source: "image://theme/back"
72− height: parent.height - units.gu(2)
72+ sourceSize.height: parent.height - units.gu(2)
73+ sourceSize.width: units.gu(3)
7374 fillMode: Image.PreserveAspectFit
7475 }
7576
@@ -144,17 +145,20 @@ Item {
144145 anchors.right: parent.right
145146 anchors.rightMargin: units.gu(2)
146147 source: "image://theme/chevron"
147− height: parent.height - units.gu(2)
148+ sourceSize.height: parent.height - units.gu(2)
149+ sourceSize.width: units.gu(3)
148150 fillMode: Image.PreserveAspectFit
149151 visible: hasChildren
150152 }
151− Text {
152− // TODO Be an image
153− text: "✓"
154− visible: !hasChildren && isActive
153+ Image {
154+ anchors.verticalCenter: parent.verticalCenter
155155 anchors.right: parent.right
156156 anchors.rightMargin: units.gu(2)
157− anchors.verticalCenter: parent.verticalCenter
157+ source: "graphics/tick.png"
158+ sourceSize.height: parent.height - units.gu(2)
159+ sourceSize.width: units.gu(3)
160+ fillMode: Image.PreserveAspectFit
161+ visible: !hasChildren && isActive
158162 }
159163
160164 Rectangle {
qml/Dash/graphics/tick@30.pngnew file

Binary file not shown.