Improve visuals and close preview on home button press.
commitf9bf55bf75a8aae1476dc28694e16b99ecabd0ba
authorMichał Sawicz <michal.sawicz@canonical.com>
dateFri 21 Feb 2014, 12:08 (13 years ago)
parent0c0d525
qml/Components/ResponsiveGridView.qml−1
@@ -56,7 +56,6 @@ Item {
5656 fill: parent
5757 leftMargin: margin/2
5858 rightMargin: margin/2
59− topMargin: verticalSpacing
6059 }
6160 clip: parent.height != totalContentHeight
6261
qml/Dash/Dash.qml+2
@@ -41,6 +41,8 @@ Showable {
4141 return
4242 }
4343
44+ dashContent.closePreview();
45+
4446 if (scopeIndex == dashContent.currentIndex && !reset) {
4547 // the scope is already the current one
4648 return
qml/Dash/DashContent.qml+4
@@ -87,6 +87,10 @@ Item {
8787 dashContentList.currentItem.theScope.closeScope(scope)
8888 }
8989
90+ function closePreview() {
91+ previewListView.open = false;
92+ }
93+
9094 Item {
9195 id: dashContentListHolder
9296 anchors.fill: parent
qml/Dash/GenericScopeView.qml+1
@@ -137,6 +137,7 @@ FocusScope {
137137 id: baseItem
138138 objectName: "dashCategory" + category
139139 highlightWhenPressed: false
140+ showDivider: false
140141
141142 readonly property bool expandable: rendererLoader.item ? rendererLoader.item.expandable : false
142143 readonly property bool filtered: rendererLoader.item ? rendererLoader.item.filter : true