@@ -22,6 +22,7 @@ Item {
22 property var department: null
22 property var department: null
23 property var currentDepartment: null
23 property var currentDepartment: null
24 property color foregroundColor: "gray"
24 property color foregroundColor: "gray"
25+ property color backgroundColor: "white"
25 signal enterDepartment(var newDepartmentId, bool hasChildren)
26 signal enterDepartment(var newDepartmentId, bool hasChildren)
26 signal goBackToParentClicked()
27 signal goBackToParentClicked()
27 signal allDepartmentClicked()
28 signal allDepartmentClicked()
@@ -31,7 +32,7 @@ Item {
33 Rectangle {
34 Rectangle {
34− color: "white"
35+ color: root.backgroundColor
35 anchors.fill: parent
36 anchors.fill: parent
@@ -81,8 +82,8 @@ Item {
81 leftMargin: units.gu(2)
82 leftMargin: units.gu(2)
83 name: "back"
84 name: "back"
84− height: parent.height - units.gu(3)
85+ height: units.gu(2)
85− width: units.gu(2)
86+ width: height
86 color: root.foregroundColor
87 color: root.foregroundColor
@@ -104,7 +105,7 @@ Item {
104 leftMargin: units.gu(2)
105 leftMargin: units.gu(2)
105 rightMargin: units.gu(2)
106 rightMargin: units.gu(2)
107− color: "gray" // TODO Should this be root.foregroundColor ?
108+ color: root.foregroundColor
108 opacity: 0.2
109 opacity: 0.2
109 height: units.dp(1)
110 height: units.dp(1)
@@ -136,7 +137,7 @@ Item {
136 leftMargin: units.gu(2)
137 leftMargin: units.gu(2)
137 rightMargin: units.gu(2)
138 rightMargin: units.gu(2)
139− color: "gray" // TODO Should this be root.foregroundColor ?
140+ color: root.foregroundColor
140 opacity: 0.2
141 opacity: 0.2
141 height: units.dp(1)
142 height: units.dp(1)
@@ -164,17 +165,16 @@ Item {
164 color: root.foregroundColor
165 color: root.foregroundColor
168− // TODO Use Icon here and use root.foregroundColor as keyColor
169 anchors {
169 anchors {
170 verticalCenter: parent.verticalCenter
170 verticalCenter: parent.verticalCenter
171 right: parent.right
171 right: parent.right
172 rightMargin: units.gu(2)
172 rightMargin: units.gu(2)
174− source: hasChildren ? "image://theme/chevron" : "graphics/tick.png"
176+ name: hasChildren ? "go-next" : "tick"
175− sourceSize.height: parent.height - units.gu(3)
177+ color: root.foregroundColor
176− sourceSize.width: units.gu(3)
177− fillMode: Image.PreserveAspectFit
178 visible: hasChildren || isActive
178 visible: hasChildren || isActive
@@ -186,7 +186,7 @@ Item {
186 leftMargin: units.gu(2)
186 leftMargin: units.gu(2)
187 rightMargin: units.gu(2)
187 rightMargin: units.gu(2)
189− color: "gray" // TODO Should this be root.foregroundColor ?
189+ color: root.foregroundColor
190 opacity: 0.1
190 opacity: 0.1
191 height: units.dp(1)
191 height: units.dp(1)
192 visible: index != department.count - 1
192 visible: index != department.count - 1