on xenial help sign in
Improve visuals and close preview on home button press.
f9bf55bMichał Sawicz
qml/Components/ResponsiveGridView.qml−1
@@ -56,7 +56,6 @@ Item {
56 fill: parent
56 fill: parent
57 leftMargin: margin/2
57 leftMargin: margin/2
58 rightMargin: margin/2
58 rightMargin: margin/2
59− topMargin: verticalSpacing
60 }
59 }
61 clip: parent.height != totalContentHeight
60 clip: parent.height != totalContentHeight
62
61
qml/Dash/Dash.qml+2
@@ -41,6 +41,8 @@ Showable {
41 return
41 return
42 }
42 }
43
43
44+ dashContent.closePreview();
45+
44 if (scopeIndex == dashContent.currentIndex && !reset) {
46 if (scopeIndex == dashContent.currentIndex && !reset) {
45 // the scope is already the current one
47 // the scope is already the current one
46 return
48 return
qml/Dash/DashContent.qml+4
@@ -87,6 +87,10 @@ Item {
87 dashContentList.currentItem.theScope.closeScope(scope)
87 dashContentList.currentItem.theScope.closeScope(scope)
88 }
88 }
89
89
90+ function closePreview() {
91+ previewListView.open = false;
92+ }
93+
90 Item {
94 Item {
91 id: dashContentListHolder
95 id: dashContentListHolder
92 anchors.fill: parent
96 anchors.fill: parent
qml/Dash/GenericScopeView.qml+1
@@ -137,6 +137,7 @@ FocusScope {
137 id: baseItem
137 id: baseItem
138 objectName: "dashCategory" + category
138 objectName: "dashCategory" + category
139 highlightWhenPressed: false
139 highlightWhenPressed: false
140+ showDivider: false
140
141
141 readonly property bool expandable: rendererLoader.item ? rendererLoader.item.expandable : false
142 readonly property bool expandable: rendererLoader.item ? rendererLoader.item.expandable : false
142 readonly property bool filtered: rendererLoader.item ? rendererLoader.item.filter : true
143 readonly property bool filtered: rendererLoader.item ? rendererLoader.item.filter : true