on xenial help sign in
Use Icon instead of Image so we can use color :)
3c45823Albert Astals
qml/Dash/DashDepartments.qml+5−6
@@ -82,16 +82,15 @@ AbstractButton {
82 color: root.foregroundColor
82 color: root.foregroundColor
83 }
83 }
84
84
85− Image {
85+ Icon {
86− // TODO Use Icon here and use root.foregroundColor as keyColor
87 anchors.verticalCenter: parent.verticalCenter
86 anchors.verticalCenter: parent.verticalCenter
88 anchors.right: parent.right
87 anchors.right: parent.right
89 anchors.rightMargin: units.gu(2)
88 anchors.rightMargin: units.gu(2)
90 rotation: showList ? 180 : 0
89 rotation: showList ? 180 : 0
91− source: "image://theme/dropdown-menu"
90+ name: "dropdown-menu"
92− sourceSize.height: parent.height - units.gu(2)
91+ height: parent.height - units.gu(3)
93− sourceSize.width: units.gu(2)
92+ width: units.gu(2)
94− fillMode: Image.PreserveAspectFit
93+ color: root.foregroundColor
95 }
94 }
96
95
97 // departmentListView is outside root
96 // departmentListView is outside root