on xenial help sign in
sourceSize for svn + tick as png
7d7c622Albert Astals
qml/Dash/DashDepartments.qml+2−1
@@ -83,7 +83,8 @@ AbstractButton {
83 anchors.rightMargin: units.gu(2)
83 anchors.rightMargin: units.gu(2)
84 rotation: showList ? 180 : 0
84 rotation: showList ? 180 : 0
85 source: "image://theme/dropdown-menu"
85 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)
87 fillMode: Image.PreserveAspectFit
88 fillMode: Image.PreserveAspectFit
88 }
89 }
89
90
qml/Dash/DashDepartmentsList.qml+11−7
@@ -69,7 +69,8 @@ Item {
69 anchors.left: parent.left
69 anchors.left: parent.left
70 anchors.leftMargin: units.gu(2)
70 anchors.leftMargin: units.gu(2)
71 source: "image://theme/back"
71 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)
73 fillMode: Image.PreserveAspectFit
74 fillMode: Image.PreserveAspectFit
74 }
75 }
75
76
@@ -144,17 +145,20 @@ Item {
144 anchors.right: parent.right
145 anchors.right: parent.right
145 anchors.rightMargin: units.gu(2)
146 anchors.rightMargin: units.gu(2)
146 source: "image://theme/chevron"
147 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)
148 fillMode: Image.PreserveAspectFit
150 fillMode: Image.PreserveAspectFit
149 visible: hasChildren
151 visible: hasChildren
150 }
152 }
151− Text {
153+ Image {
152− // TODO Be an image
154+ anchors.verticalCenter: parent.verticalCenter
153− text: "✓"
154− visible: !hasChildren && isActive
155 anchors.right: parent.right
155 anchors.right: parent.right
156 anchors.rightMargin: units.gu(2)
156 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
158 }
162 }
159
163
160 Rectangle {
164 Rectangle {
qml/Dash/graphics/tick@30.pngnew file

Binary file not shown.