on xenial help sign in
ScopesList: Use the default scope style for the header
a9db83fAlbert Astals Cid
qml/Dash/ScopesList.qml+5−1
@@ -34,6 +34,9 @@ Item {
34
34
35 state: "browse"
35 state: "browse"
36
36
37+ property var scopeStyle: ScopeStyle {
38+ }
39+
37 onStateChanged: {
40 onStateChanged: {
38 if (state == "edit") {
41 if (state == "edit") {
39 // As per design entering edit mode clears the possible existing search
42 // As per design entering edit mode clears the possible existing search
@@ -66,6 +69,7 @@ Item {
66 backIsClose: root.state == "edit"
69 backIsClose: root.state == "edit"
67 storeEntryEnabled: root.state == "browse"
70 storeEntryEnabled: root.state == "browse"
68 searchEntryEnabled: false // Disable search for now
71 searchEntryEnabled: false // Disable search for now
72+ scopeStyle: root.scopeStyle
69 onBackClicked: {
73 onBackClicked: {
70 if (backIsClose) {
74 if (backIsClose) {
71 root.state = "browse"
75 root.state = "browse"
@@ -111,7 +115,7 @@ Item {
111
115
112 editMode: root.state == "edit"
116 editMode: root.state == "edit"
113
117
114− scopeStyle: root.scope.scopeStyle
118+ scopeStyle: root.scopeStyle
115 isFavoritesFeed: categoryId == "favorites"
119 isFavoritesFeed: categoryId == "favorites"
116 isAlsoInstalled: categoryId == "other"
120 isAlsoInstalled: categoryId == "other"
117
121