on xenial help sign in
Another Image -> Icon + color
72743f7Albert Astals
qml/Dash/DashDepartmentsList.qml+5−6
@@ -73,18 +73,17 @@ Item {
73
73
74 onClicked: root.goBackToParentClicked();
74 onClicked: root.goBackToParentClicked();
75
75
76− Image {
76+ Icon {
77− // TODO Use Icon here and use root.foregroundColor as keyColor
78 id: backImage
77 id: backImage
79 anchors {
78 anchors {
80 verticalCenter: parent.verticalCenter
79 verticalCenter: parent.verticalCenter
81 left: parent.left
80 left: parent.left
82 leftMargin: units.gu(2)
81 leftMargin: units.gu(2)
83 }
82 }
84− source: "image://theme/back"
83+ name: "back"
85− sourceSize.height: parent.height - units.gu(3)
84+ height: parent.height - units.gu(3)
86− sourceSize.width: units.gu(3)
85+ width: units.gu(2)
87− fillMode: Image.PreserveAspectFit
86+ color: root.foregroundColor
88 }
87 }
89
88
90 Label {
89 Label {