@@ -36,6 +36,7 @@ FocusScope {
3636 property ListModel searchHistory
3737 property bool enableHeightBehaviorOnNextCreation: false
3838 property var categoryView: categoryView
39+ property color foregroundColor: scope && scope.customizations["foreground-color"] || "grey"
3940
4041 signal backClicked()
4142
@@ -97,6 +98,13 @@ FocusScope {
9798 onHideDash: previewListView.open = false;
9899 }
99100
101+ Rectangle {
102+ id: headerBackground
103+ anchors.fill: parent
104+ color: scopeView.scope && scopeView.scope.customizations["background-color"] || "transparent"
105+ visible: color != "transparent"
106+ }
107+
100108 ScopeListView {
101109 id: categoryView
102110 objectName: "categoryListView"
@@ -159,6 +167,7 @@ FocusScope {
159167 item.model = Qt.binding(function() { return results })
160168 }
161169 item.objectName = Qt.binding(function() { return categoryId })
170+ item.foregroundColor = Qt.binding(function() { return scopeView.foregroundColor })
162171 if (item.expandable) {
163172 var shouldFilter = categoryId != categoryView.expandedCategoryId;
164173 item.setFilter(shouldFilter, false /*animate*/);
@@ -298,6 +307,7 @@ FocusScope {
298307 property var delegate: categoryView.item(delegateIndex)
299308 width: categoryView.width
300309 text: section
310+ textColor: foregroundColor
301311 image: {
302312 if (delegate && delegate.expandable)
303313 return delegate.filtered ? "graphics/header_handlearrow.png" : "graphics/header_handlearrow2.png"
@@ -319,8 +329,7 @@ FocusScope {
319329 showBackButton: scopeView.hasBackAction
320330 searchEntryEnabled: true
321331 searchInProgress: root.scope.searchInProgress
322− backgroundColor: scopeView.scope && scopeView.scope.customizations["background-color"] || "transparent"
323− foregroundColor: scopeView.scope && scopeView.scope.customizations["foreground-color"] || "grey"
332+ foregroundColor: scopeView.foregroundColor
324333 imageSource: scopeView.scope && scopeView.scope.customizations["page-header"] && scopeView.scope.customizations["page-header"]["logo"] || ""
325334
326335 bottomItem: DashDepartments {
@@ -329,6 +338,8 @@ FocusScope {
329338 anchors.right: parent.right
330339 windowHeight: scopeView.height
331340 windowWidth: scopeView.width
341+ foregroundColor: scopeView.foregroundColor
342+ // TODO Should we move the background color over the deparments combo too?
332343 }
333344
334345 onBackClicked: scopeView.backClicked()