@@ -36,6 +36,7 @@ FocusScope {
36 property ListModel searchHistory
36 property ListModel searchHistory
37 property bool enableHeightBehaviorOnNextCreation: false
37 property bool enableHeightBehaviorOnNextCreation: false
38 property var categoryView: categoryView
38 property var categoryView: categoryView
39+ property color foregroundColor: scope && scope.customizations["foreground-color"] || "grey"
40 signal backClicked()
41 signal backClicked()
@@ -97,6 +98,13 @@ FocusScope {
97 onHideDash: previewListView.open = false;
98 onHideDash: previewListView.open = false;
102+ id: headerBackground
103+ anchors.fill: parent
104+ color: scopeView.scope && scopeView.scope.customizations["background-color"] || "transparent"
105+ visible: color != "transparent"
100 ScopeListView {
108 ScopeListView {
101 id: categoryView
109 id: categoryView
102 objectName: "categoryListView"
110 objectName: "categoryListView"
@@ -159,6 +167,7 @@ FocusScope {
159 item.model = Qt.binding(function() { return results })
167 item.model = Qt.binding(function() { return results })
161 item.objectName = Qt.binding(function() { return categoryId })
169 item.objectName = Qt.binding(function() { return categoryId })
170+ item.foregroundColor = Qt.binding(function() { return scopeView.foregroundColor })
162 if (item.expandable) {
171 if (item.expandable) {
163 var shouldFilter = categoryId != categoryView.expandedCategoryId;
172 var shouldFilter = categoryId != categoryView.expandedCategoryId;
164 item.setFilter(shouldFilter, false /*animate*/);
173 item.setFilter(shouldFilter, false /*animate*/);
@@ -298,6 +307,7 @@ FocusScope {
298 property var delegate: categoryView.item(delegateIndex)
307 property var delegate: categoryView.item(delegateIndex)
299 width: categoryView.width
308 width: categoryView.width
300 text: section
309 text: section
310+ textColor: foregroundColor
302 if (delegate && delegate.expandable)
312 if (delegate && delegate.expandable)
303 return delegate.filtered ? "graphics/header_handlearrow.png" : "graphics/header_handlearrow2.png"
313 return delegate.filtered ? "graphics/header_handlearrow.png" : "graphics/header_handlearrow2.png"
@@ -319,8 +329,7 @@ FocusScope {
319 showBackButton: scopeView.hasBackAction
329 showBackButton: scopeView.hasBackAction
320 searchEntryEnabled: true
330 searchEntryEnabled: true
321 searchInProgress: root.scope.searchInProgress
331 searchInProgress: root.scope.searchInProgress
322− backgroundColor: scopeView.scope && scopeView.scope.customizations["background-color"] || "transparent"
332+ foregroundColor: scopeView.foregroundColor
323− foregroundColor: scopeView.scope && scopeView.scope.customizations["foreground-color"] || "grey"
324 imageSource: scopeView.scope && scopeView.scope.customizations["page-header"] && scopeView.scope.customizations["page-header"]["logo"] || ""
333 imageSource: scopeView.scope && scopeView.scope.customizations["page-header"] && scopeView.scope.customizations["page-header"]["logo"] || ""
326 bottomItem: DashDepartments {
335 bottomItem: DashDepartments {
@@ -329,6 +338,8 @@ FocusScope {
329 anchors.right: parent.right
338 anchors.right: parent.right
330 windowHeight: scopeView.height
339 windowHeight: scopeView.height
331 windowWidth: scopeView.width
340 windowWidth: scopeView.width
341+ foregroundColor: scopeView.foregroundColor
342+ // TODO Should we move the background color over the deparments combo too?
334 onBackClicked: scopeView.backClicked()
345 onBackClicked: scopeView.backClicked()