Merge lp:~jonas-drange/ubuntu-system-settings/seemingly-unable-to-remove-backgrounds-fix-1365545 into lp:ubuntu-system-settings

Proposed by Jonas G. Drange
Status: Rejected
Rejected by: Jonas G. Drange
Proposed branch: lp:~jonas-drange/ubuntu-system-settings/seemingly-unable-to-remove-backgrounds-fix-1365545
Merge into: lp:ubuntu-system-settings
Prerequisite: lp:~jonas-drange/ubuntu-system-settings/fix-1365167-numerous-custom-background-issues
Diff against target: 234 lines (+94/-63)
4 files modified
plugins/about/CMakeLists.txt (+1/-0)
plugins/about/SingleValueStacked.qml (+61/-0)
plugins/about/Version.qml (+20/-62)
plugins/background/WallpaperGrid.qml (+12/-1)
To merge this branch: bzr merge lp:~jonas-drange/ubuntu-system-settings/seemingly-unable-to-remove-backgrounds-fix-1365545
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Needs Fixing
PS Jenkins bot continuous-integration Approve
Review via email: mp+233537@code.launchpad.net

Commit message

[background] make it clear that "Remove images…" action requires image selection

Description of the change

Hi,

this panel slightly fades the custom images when "Remove Images…" is clicked. This makes it slightly clearer that the user needs to choose what images to remove.

Thanks

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, you included changes to the about panel there that you don't want, you should either add a pre-required vcs or clean those out. Could you also try to summarize the behaviour/ui changes and maybe refer to the design recommendations for those?

review: Needs Fixing
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Thanks, not sure what happened here. Will wait until either of them land, or can you add two prereqs?

Revision history for this message
Sebastien Bacher (seb128) wrote :

some of those pre-req landed, that can probably be refresh/submitted

Unmerged revisions

1001. By Jonas G. Drange

ui to make the "remove images…" flow more intuitive

1000. By Jonas G. Drange

merge prereq

994. By Launchpad Translations on behalf of system-settings-touch

Launchpad automatic translations update.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/about/CMakeLists.txt'
2--- plugins/about/CMakeLists.txt 2014-09-04 00:58:34 +0000
3+++ plugins/about/CMakeLists.txt 2014-09-05 14:51:18 +0000
4@@ -10,6 +10,7 @@
5 PageComponent.qml
6 PhoneNumber.qml
7 PhoneNumbers.qml
8+ SingleValueStacked.qml
9 Software.qml
10 Storage.qml
11 StorageBar.qml
12
13=== added file 'plugins/about/SingleValueStacked.qml'
14--- plugins/about/SingleValueStacked.qml 1970-01-01 00:00:00 +0000
15+++ plugins/about/SingleValueStacked.qml 2014-09-05 14:51:18 +0000
16@@ -0,0 +1,61 @@
17+/*
18+ * This file is part of system-settings
19+ *
20+ * Copyright (C) 2014 Canonical Ltd.
21+ *
22+ * Contact: Jonas G. Drange <jonas.drange@canonical.com>
23+ *
24+ * This program is free software: you can redistribute it and/or modify it
25+ * under the terms of the GNU General Public License version 3, as published
26+ * by the Free Software Foundation.
27+ *
28+ * This program is distributed in the hope that it will be useful, but
29+ * WITHOUT ANY WARRANTY; without even the implied warranties of
30+ * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
31+ * PURPOSE. See the GNU General Public License for more details.
32+ *
33+ * You should have received a copy of the GNU General Public License along
34+ * with this program. If not, see <http://www.gnu.org/licenses/>.
35+ *
36+ * Author: Jonas G. Drange <jonas.drange@canonical.com>
37+ *
38+ * DRY
39+ *
40+ */
41+import QtQuick 2.0
42+import Ubuntu.Components 0.1
43+import Ubuntu.Components.ListItems 0.1 as ListItem
44+
45+ListItem.SingleValue {
46+
47+ property alias text: label.text
48+ property alias value: value.text
49+
50+ height: col.childrenRect.height + units.gu(2)
51+ anchors {
52+ left: parent.left
53+ right: parent.right
54+ }
55+ Column {
56+ anchors.fill: parent
57+ anchors.topMargin: units.gu(1)
58+ id: col
59+ spacing: units.gu(1)
60+ Label {
61+ id: label
62+ anchors {
63+ left:parent.left
64+ right:parent.right
65+ }
66+ wrapMode: Text.WordWrap
67+ }
68+ Label {
69+ id: value
70+ anchors {
71+ left:parent.left
72+ right:parent.right
73+ }
74+ wrapMode: Text.WordWrap
75+ }
76+ }
77+}
78
79=== modified file 'plugins/about/Version.qml'
80--- plugins/about/Version.qml 2014-06-24 16:08:36 +0000
81+++ plugins/about/Version.qml 2014-09-05 14:51:18 +0000
82@@ -18,6 +18,7 @@
83 * with this program. If not, see <http://www.gnu.org/licenses/>.
84 *
85 * Author: Sergio Schvezov <sergio.schvezov@canonical.com>
86+ * Jonas G. Drange <jonas.drange@canonical.com>
87 *
88 */
89
90@@ -33,6 +34,7 @@
91 id: versionPage
92 objectName: "versionPage"
93 title: i18n.tr("OS Build Details")
94+ flickable: flickElement
95
96 UbuntuStorageAboutPanel {
97 id: storedInfo
98@@ -43,10 +45,20 @@
99 }
100
101 Flickable {
102+ id: flickElement
103 anchors.fill: parent
104
105+ contentHeight: contentItem.childrenRect.height
106+ boundsBehavior: (contentHeight > versionPage.height) ? Flickable.DragAndOvershootBounds : Flickable.StopAtBounds
107+ /* Set the direction to workaround https://bugreports.qt-project.org/browse/QTBUG-31905
108+ otherwise the UI might end up in a situation where scrolling doesn't work */
109+ flickableDirection: Flickable.VerticalFlick
110+
111 Column {
112- anchors.fill: parent
113+ anchors {
114+ left: parent.left
115+ right: parent.right
116+ }
117
118 ListItem.SingleValue {
119 objectName: "versionBuildNumberItem"
120@@ -61,79 +73,25 @@
121 visible: updateBackendInfo.currentUbuntuBuildNumber
122 }
123
124- ListItem.SingleValue {
125+ SingleValueStacked {
126 objectName: "ubuntuBuildIDItem"
127- height: ubuntuBuildIDColumn.childrenRect.height + units.gu(2)
128 visible: storedInfo.ubuntuBuildID
129- anchors {
130- left: parent.left
131- right: parent.right
132- }
133-
134- Column {
135- anchors.fill: parent
136- anchors.topMargin: units.gu(1)
137-
138- id: ubuntuBuildIDColumn
139- spacing: units.gu(1)
140- Label {
141- anchors {
142- left:parent.left
143- right:parent.right
144- }
145- wrapMode: Text.WordWrap
146- text: i18n.tr("Ubuntu build description")
147- }
148- Label {
149- anchors {
150- left:parent.left
151- right:parent.right
152- }
153- wrapMode: Text.WordWrap
154- text: storedInfo.ubuntuBuildID
155- }
156- }
157+ text: i18n.tr("Ubuntu build description")
158+ value: storedInfo.ubuntuBuildID
159 }
160
161- ListItem.SingleValue {
162+ SingleValueStacked {
163 objectName: "deviceVersionBuildNumberItem"
164 text: i18n.tr("Device Image part")
165 value: updateBackendInfo.currentDeviceBuildNumber
166 visible: updateBackendInfo.currentDeviceBuildNumber
167 }
168
169- ListItem.SingleValue {
170+ SingleValueStacked {
171 objectName: "deviceBuildIDItem"
172- height: deviceBuildIDColumn.childrenRect.height + units.gu(2)
173+ text: i18n.tr("Device build description")
174+ value: storedInfo.deviceBuildDisplayID
175 visible: storedInfo.deviceBuildDisplayID
176- anchors {
177- left: parent.left
178- right: parent.right
179- }
180-
181- Column {
182- anchors.fill: parent
183- anchors.topMargin: units.gu(1)
184-
185- id: deviceBuildIDColumn
186- spacing: units.gu(1)
187- Label {
188- anchors {
189- left:parent.left
190- right:parent.right
191- }
192- wrapMode: Text.WordWrap
193- text: i18n.tr("Device build description")
194- }
195- Label {
196- anchors {
197- left:parent.left
198- right:parent.right
199- }
200- wrapMode: Text.WordWrap
201- text: storedInfo.deviceBuildDisplayID
202- }
203- }
204 }
205
206 ListItem.SingleValue {
207
208=== modified file 'plugins/background/WallpaperGrid.qml'
209--- plugins/background/WallpaperGrid.qml 2014-09-05 14:51:18 +0000
210+++ plugins/background/WallpaperGrid.qml 2014-09-05 14:51:18 +0000
211@@ -160,11 +160,22 @@
212 fillMode: Image.PreserveAspectCrop
213 asynchronous: true
214 smooth: true
215+ opacity: {
216+ if (gridItem.state === "selected") {
217+ return 1
218+ } else if (grid.state === "selection") {
219+ return 0.75;
220+ } else {
221+ return 1;
222+ }
223+ }
224 }
225 HighlightedOverlay {
226 id: highLight
227 objectName: "highLight"
228- visible: (current === modelData) && (itemImage.status === Image.Ready)
229+ visible: (current === modelData)
230+ && (itemImage.status === Image.Ready)
231+ && (grid.state !== "selection")
232 }
233 SelectedOverlay {
234 id: selectionTick

Subscribers

People subscribed via source and target branches