@@ -22,6 +22,7 @@ Item {
2222 property var department: null
2323 property var currentDepartment: null
2424 property color foregroundColor: "gray"
25+ property color backgroundColor: "white"
2526 signal enterDepartment(var newDepartmentId, bool hasChildren)
2627 signal goBackToParentClicked()
2728 signal allDepartmentClicked()
@@ -31,7 +32,7 @@ Item {
3132
3233
3334 Rectangle {
34− color: "white"
35+ color: root.backgroundColor
3536 anchors.fill: parent
3637 }
3738
@@ -81,8 +82,8 @@ Item {
8182 leftMargin: units.gu(2)
8283 }
8384 name: "back"
84− height: parent.height - units.gu(3)
85− width: units.gu(2)
85+ height: units.gu(2)
86+ width: height
8687 color: root.foregroundColor
8788 }
8889
@@ -104,7 +105,7 @@ Item {
104105 leftMargin: units.gu(2)
105106 rightMargin: units.gu(2)
106107 }
107− color: "gray" // TODO Should this be root.foregroundColor ?
108+ color: root.foregroundColor
108109 opacity: 0.2
109110 height: units.dp(1)
110111 }
@@ -136,7 +137,7 @@ Item {
136137 leftMargin: units.gu(2)
137138 rightMargin: units.gu(2)
138139 }
139− color: "gray" // TODO Should this be root.foregroundColor ?
140+ color: root.foregroundColor
140141 opacity: 0.2
141142 height: units.dp(1)
142143 }
@@ -164,17 +165,16 @@ Item {
164165 color: root.foregroundColor
165166 }
166167
167− Image {
168− // TODO Use Icon here and use root.foregroundColor as keyColor
168+ Icon {
169169 anchors {
170170 verticalCenter: parent.verticalCenter
171171 right: parent.right
172172 rightMargin: units.gu(2)
173173 }
174− source: hasChildren ? "image://theme/chevron" : "graphics/tick.png"
175− sourceSize.height: parent.height - units.gu(3)
176− sourceSize.width: units.gu(3)
177− fillMode: Image.PreserveAspectFit
174+ height: units.gu(2)
175+ width: height
176+ name: hasChildren ? "go-next" : "tick"
177+ color: root.foregroundColor
178178 visible: hasChildren || isActive
179179 }
180180
@@ -186,7 +186,7 @@ Item {
186186 leftMargin: units.gu(2)
187187 rightMargin: units.gu(2)
188188 }
189− color: "gray" // TODO Should this be root.foregroundColor ?
189+ color: root.foregroundColor
190190 opacity: 0.1
191191 height: units.dp(1)
192192 visible: index != department.count - 1