Merge lp:~unity-team/unity8/indicator-color-fixes into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Approved by: Michał Sawicz
Approved revision: 2217
Merged at revision: 2220
Proposed branch: lp:~unity-team/unity8/indicator-color-fixes
Merge into: lp:unity8
Diff against target: 383 lines (+33/-179)
11 files modified
debian/control (+2/-2)
qml/Panel/Handle.qml (+2/-2)
qml/Panel/IndicatorItem.qml (+3/-3)
qml/Panel/Indicators/MenuItemFactory.qml (+3/-3)
qml/Panel/Indicators/ModemInfoItem.qml (+0/-111)
qml/Panel/Indicators/RoamingIndication.qml (+0/-40)
qml/Panel/IndicatorsMenu.qml (+3/-2)
qml/Panel/MenuContent.qml (+1/-1)
qml/Panel/Panel.qml (+1/-1)
tests/qmltests/Panel/tst_IndicatorItem.qml (+16/-14)
tests/qmltests/Panel/tst_Panel.qml (+2/-0)
To merge this branch: bzr merge lp:~unity-team/unity8/indicator-color-fixes
Reviewer Review Type Date Requested Status
Michał Sawicz Approve
Albert Astals Cid Pending
Unity8 CI Bot continuous-integration Pending
PS Jenkins bot continuous-integration Pending
Zsombor Egri Pending
Review via email: mp+288175@code.launchpad.net

This proposal supersedes a proposal from 2016-01-27.

Commit message

Fixed colours palette value set. Moved ModemItem to USC.

Description of the change

* Are there any related MPs required for this MP to build/function as expected? Please list.
https://code.launchpad.net/~bzoltan/ubuntu-ui-toolkit/OTA10-landing-2016-01-20/+merge/283385
https://code.launchpad.net/~nick-dedekind/ubuntu-settings-components/indicator-color-fixes/+merge/285702

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
Yes

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:2145
https://unity8-jenkins.ubuntu.com/job/lp-unity8-1-ci/214/
Executed test runs:

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-1-ci/214/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:2145
http://jenkins.qa.ubuntu.com/job/unity8-ci/7164/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/6222/console
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/579/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1869
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/572
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1764
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1764
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/571
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/570
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4795/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6233
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6233/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27079
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/298/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/577
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/577/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27078

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7164/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal

I guess we need to increase the USC dependency?

review: Needs Information
Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

Please also update to use palette.disabled instead of palette.inactive valueset. Silo 050 shoudl already have these values there.

review: Needs Fixing
Revision history for this message
Nick Dedekind (nick-dedekind) wrote : Posted in a previous version of this proposal

> Please also update to use palette.disabled instead of palette.inactive
> valueset. Silo 050 shoudl already have these values there.

Done.

Revision history for this message
Nick Dedekind (nick-dedekind) wrote : Posted in a previous version of this proposal

> Please also update to use palette.disabled instead of palette.inactive
> valueset. Silo 050 shoudl already have these values there.

Done.

Revision history for this message
Nick Dedekind (nick-dedekind) wrote : Posted in a previous version of this proposal

> I guess we need to increase the USC dependency?

done

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

I am good with the colors. I see in few places the use of UbuntuColors instead of palette colors, but that may be a design request, so it's good to go. In case those should be themed, those should be checked again with design.

review: Approve
Revision history for this message
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal

Code looks good, waiting on silo to be available to do testing.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote : Posted in a previous version of this proposal

Testing looks good

review: Approve
Revision history for this message
Michał Sawicz (saviq) wrote :

Approving as per the superseded MP.

The diff² is s/SuruGradient/SuruDark/ that happened in lp:~ubuntu-sdk-team/unity8/unity-theme instead.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2016-02-19 12:42:44 +0000
3+++ debian/control 2016-03-04 21:01:30 +0000
4@@ -54,7 +54,7 @@
5 qtdeclarative5-private-dev (>= 5.4),
6 qtdeclarative5-qtmultimedia-plugin (>= 5.4.1-1ubuntu19~overlay2),
7 qtdeclarative5-ubuntu-content1,
8- qtdeclarative5-ubuntu-settings-components (>= 0.6),
9+ qtdeclarative5-ubuntu-settings-components (>= 0.7),
10 qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 1.3.1676) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 1.3.1676),
11 qtdeclarative5-ubuntu-web-plugin,
12 ttf-ubuntu-font-family,
13@@ -126,7 +126,7 @@
14 Package: unity8-common
15 Architecture: all
16 Depends: qml-module-qtquick-layouts,
17- qtdeclarative5-ubuntu-settings-components (>= 0.6),
18+ qtdeclarative5-ubuntu-settings-components (>= 0.7),
19 qtdeclarative5-ubuntu-thumbnailer0.1 | ubuntu-thumbnailer-impl,
20 qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 1.3.1627) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles (>= 1.3.1627),
21 qtdeclarative5-unity-notifications-plugin (>= 0.1.2) | unity-notifications-impl,
22
23=== modified file 'qml/Panel/Handle.qml'
24--- qml/Panel/Handle.qml 2015-11-25 14:10:22 +0000
25+++ qml/Panel/Handle.qml 2016-03-04 21:01:30 +0000
26@@ -19,7 +19,7 @@
27
28 Rectangle {
29 id: handle
30- color: "#5d5d5d"
31+ color: UbuntuColors.slate
32 height: units.gu(2)
33 property bool active: false
34
35@@ -35,7 +35,7 @@
36 id: dot
37 width: units.dp(3)
38 height: width
39- color: handle.active ? UbuntuColors.orange : "#888888"
40+ color: handle.active ? UbuntuColors.orange : UbuntuColors.ash
41 radius: units.dp(1)
42 }
43 }
44
45=== modified file 'qml/Panel/IndicatorItem.qml'
46--- qml/Panel/IndicatorItem.qml 2016-01-05 06:09:56 +0000
47+++ qml/Panel/IndicatorItem.qml 2016-03-04 21:01:30 +0000
48@@ -32,9 +32,9 @@
49 property bool selected: false
50 property real iconHeight: units.gu(2)
51 readonly property color color: {
52- if (!expanded) return "#ffffff";
53- if (!selected) return "#888888";
54- return "#ffffff";
55+ if (!expanded) return theme.palette.normal.backgroundText;
56+ if (!selected) return theme.palette.disabled.backgroundText;
57+ return theme.palette.normal.backgroundText;
58 }
59
60 implicitWidth: mainItems.width
61
62=== modified file 'qml/Panel/Indicators/MenuItemFactory.qml'
63--- qml/Panel/Indicators/MenuItemFactory.qml 2016-01-11 17:36:56 +0000
64+++ qml/Panel/Indicators/MenuItemFactory.qml 2016-03-04 21:01:30 +0000
65@@ -261,7 +261,7 @@
66 name: "settings"
67 height: units.gu(3)
68 width: height
69- color: theme.palette.selected.backgroundText
70+ color: theme.palette.normal.backgroundText
71 }
72 }
73 }
74@@ -293,7 +293,7 @@
75 source: menuData.icon
76 height: units.gu(3)
77 width: height
78- color: theme.palette.selected.backgroundText
79+ color: theme.palette.normal.backgroundText
80 }
81 }
82 }
83@@ -620,7 +620,7 @@
84
85 Component {
86 id: modeminfoitem;
87- ModemInfoItem {
88+ Menus.ModemInfoItem {
89 objectName: "modemInfoItem"
90 property QtObject menuData: null
91 property var menuModel: menuFactory.menuModel
92
93=== removed file 'qml/Panel/Indicators/ModemInfoItem.qml'
94--- qml/Panel/Indicators/ModemInfoItem.qml 2015-07-15 15:13:18 +0000
95+++ qml/Panel/Indicators/ModemInfoItem.qml 1970-01-01 00:00:00 +0000
96@@ -1,111 +0,0 @@
97-/*
98- * Copyright 2014,2015 Canonical Ltd.
99- *
100- * This program is free software; you can redistribute it and/or modify
101- * it under the terms of the GNU Lesser General Public License as published by
102- * the Free Software Foundation; version 3.
103- *
104- * This program is distributed in the hope that it will be useful,
105- * but WITHOUT ANY WARRANTY; without even the implied warranty of
106- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
107- * GNU Lesser General Public License for more details.
108- *
109- * You should have received a copy of the GNU Lesser General Public License
110- * along with this program. If not, see <http://www.gnu.org/licenses/>.
111- */
112-
113-import QtQuick 2.4
114-import QtQuick.Layouts 1.1
115-import Ubuntu.Components 1.3
116-import Ubuntu.Components.ListItems 1.3 as ListItem
117-
118-ListItem.Empty {
119- id: menu
120- implicitHeight: mainColumn.implicitHeight
121- + mainColumn.anchors.topMargin
122- + mainColumn.anchors.bottomMargin
123-
124- property alias statusIcon: statusIcon.name
125- property alias statusText: labelStatus.text
126- property alias connectivityIcon: iconConnectivity.name
127- property alias simIdentifierText: labelSimIdentifier.text
128- property bool locked : false
129- property bool roaming: false
130- signal unlock
131-
132- ColumnLayout {
133- id: mainColumn
134- anchors.fill: parent
135- anchors.margins: menu.__contentsMargins
136- spacing: units.gu(0.5)
137-
138- Label {
139- id: labelSimIdentifier
140- elide: Text.ElideRight
141- visible: text !== ""
142- font.bold: true
143- opacity: menu.locked ? 0.6 : 1.0
144- }
145-
146- RowLayout {
147- id: statusRow
148- spacing: units.gu(1)
149-
150- height: labelStatus.height
151- width: parent.width
152-
153- Label {
154- id: labelStatus
155- elide: Text.ElideRight
156- opacity: 0.6
157- }
158-
159- RowLayout {
160- spacing: 0.5
161- height: parent.height
162- Icon {
163- id: statusIcon
164- color: theme.palette.selected.backgroundText
165-
166- Layout.preferredHeight: parent.height
167- Layout.preferredWidth: Layout.preferredHeight
168-
169- visible: name !== ""
170- }
171-
172- Icon {
173- id: iconConnectivity
174- color: theme.palette.selected.backgroundText
175-
176- Layout.preferredHeight: parent.height
177- Layout.preferredWidth: Layout.preferredHeight
178-
179- visible: name !== ""
180- }
181- }
182-
183- Item {
184- // eat up all the excess space so that RoamingIndication
185- // ends up to the far right
186- Layout.fillWidth: true
187- }
188-
189- RoamingIndication {
190- id: roamingIndication
191- visible: menu.roaming
192- Layout.fillHeight: true
193- }
194- }
195-
196- Button {
197- id: buttonUnlock
198- objectName: "buttonUnlockSim"
199- visible: menu.locked
200-
201- text: i18n.tr("Unlock SIM")
202- Layout.preferredWidth: implicitWidth + units.gu(5)
203-
204- onTriggered: menu.unlock()
205- }
206- }
207-}
208
209=== removed file 'qml/Panel/Indicators/RoamingIndication.qml'
210--- qml/Panel/Indicators/RoamingIndication.qml 2015-07-15 15:13:18 +0000
211+++ qml/Panel/Indicators/RoamingIndication.qml 1970-01-01 00:00:00 +0000
212@@ -1,40 +0,0 @@
213-/*
214- * Copyright 2014,2015 Canonical Ltd.
215- *
216- * This program is free software; you can redistribute it and/or modify
217- * it under the terms of the GNU Lesser General Public License as published by
218- * the Free Software Foundation; version 3.
219- *
220- * This program is distributed in the hope that it will be useful,
221- * but WITHOUT ANY WARRANTY; without even the implied warranty of
222- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
223- * GNU Lesser General Public License for more details.
224- *
225- * You should have received a copy of the GNU Lesser General Public License
226- * along with this program. If not, see <http://www.gnu.org/licenses/>.
227- */
228-
229-import QtQuick 2.4
230-import QtQuick.Layouts 1.1
231-import Ubuntu.Components 1.3
232-
233-RowLayout {
234- spacing: units.gu(0.5)
235- Label {
236- id: labelRoaming
237- elide: Text.ElideRight
238- fontSize: "x-small"
239- text: i18n.tr("Roaming")
240- opacity: 0.6
241- }
242-
243- Icon {
244- id: iconRoaming
245- color: theme.palette.selected.backgroundText
246-
247- Layout.preferredHeight: parent.height
248- Layout.preferredWidth: Layout.preferredHeight
249-
250- name: "network-cellular-roaming"
251- }
252-}
253
254=== modified file 'qml/Panel/IndicatorsMenu.qml'
255--- qml/Panel/IndicatorsMenu.qml 2015-11-26 13:51:53 +0000
256+++ qml/Panel/IndicatorsMenu.qml 2016-03-04 21:01:30 +0000
257@@ -38,7 +38,7 @@
258 property bool enableHint: true
259 property bool contentEnabled: true
260 property bool showOnClick: true
261- property color panelColor: "#292929"
262+ property color panelColor: theme.palette.normal.background
263
264 signal showTapped(point position)
265
266@@ -76,6 +76,7 @@
267 MenuContent {
268 id: content
269 objectName: "menuContent"
270+ color: root.panelColor
271
272 anchors {
273 left: parent.left
274@@ -110,7 +111,7 @@
275 height: units.gu(0.5)
276 gradient: Gradient {
277 GradientStop { position: 0.0; color: "transparent" }
278- GradientStop { position: 1.0; color: "#292929" }
279+ GradientStop { position: 1.0; color: root.panelColor }
280 }
281 opacity: 0.3
282 }
283
284=== modified file 'qml/Panel/MenuContent.qml'
285--- qml/Panel/MenuContent.qml 2015-11-25 13:57:34 +0000
286+++ qml/Panel/MenuContent.qml 2016-03-04 21:01:30 +0000
287@@ -27,7 +27,7 @@
288
289 property QtObject indicatorsModel: null
290 property int currentMenuIndex: -1
291- color: "#292929" // FIXME not in palette yet
292+ color: theme.palette.normal.background
293
294 width: units.gu(40)
295 height: units.gu(42)
296
297=== modified file 'qml/Panel/Panel.qml'
298--- qml/Panel/Panel.qml 2015-11-25 13:57:34 +0000
299+++ qml/Panel/Panel.qml 2016-03-04 21:01:30 +0000
300@@ -89,7 +89,7 @@
301
302 Rectangle {
303 id: indicatorAreaBackground
304- color: callHint.visible ? "green" : "#292929"
305+ color: callHint.visible ? UbuntuColors.green : theme.palette.normal.background
306 anchors {
307 top: parent.top
308 left: parent.left
309
310=== modified file 'tests/qmltests/Panel/tst_IndicatorItem.qml'
311--- tests/qmltests/Panel/tst_IndicatorItem.qml 2015-08-13 09:08:15 +0000
312+++ tests/qmltests/Panel/tst_IndicatorItem.qml 2016-03-04 21:01:30 +0000
313@@ -24,7 +24,9 @@
314 Rectangle {
315 width: units.gu(80)
316 height: units.gu(30)
317- color: "white"
318+ color: theme.palette.normal.background
319+
320+ Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark"
321
322 RowLayout {
323 anchors.fill: parent
324@@ -37,7 +39,7 @@
325 Layout.fillHeight: true
326
327 Rectangle {
328- color: "black"
329+ color: theme.palette.normal.background
330 anchors.fill: indicatorItem
331 }
332
333@@ -181,25 +183,25 @@
334 }
335
336 function test_select() {
337- tryCompare(findChild(indicatorItem, "icon0"), "color", "#ffffff");
338+ tryCompare(findChild(indicatorItem, "icon0"), "color", theme.palette.normal.backgroundText);
339 tryCompare(findChild(indicatorItem, "icon0"), "opacity", 1.0);
340- tryCompare(findChild(indicatorItem, "leftLabel"), "color", "#ffffff");
341- tryCompare(findChild(indicatorItem, "rightLabel"), "color", "#ffffff");
342- tryCompare(findChild(indicatorItem, "indicatorName"), "color", "#ffffff");
343+ tryCompare(findChild(indicatorItem, "leftLabel"), "color", theme.palette.normal.backgroundText);
344+ tryCompare(findChild(indicatorItem, "rightLabel"), "color", theme.palette.normal.backgroundText);
345+ tryCompare(findChild(indicatorItem, "indicatorName"), "color", theme.palette.normal.backgroundText);
346
347 indicatorItem.expanded = true;
348- tryCompare(findChild(indicatorItem, "icon0"), "color", "#888888");
349+ tryCompare(findChild(indicatorItem, "icon0"), "color", theme.palette.disabled.backgroundText);
350 tryCompare(findChild(indicatorItem, "icon0"), "opacity", 0.6);
351- tryCompare(findChild(indicatorItem, "leftLabel"), "color", "#888888");
352- tryCompare(findChild(indicatorItem, "rightLabel"), "color", "#888888");
353- tryCompare(findChild(indicatorItem, "indicatorName"), "color", "#888888");
354+ tryCompare(findChild(indicatorItem, "leftLabel"), "color", theme.palette.disabled.backgroundText);
355+ tryCompare(findChild(indicatorItem, "rightLabel"), "color", theme.palette.disabled.backgroundText);
356+ tryCompare(findChild(indicatorItem, "indicatorName"), "color", theme.palette.disabled.backgroundText);
357
358 indicatorItem.selected = true;
359- tryCompare(findChild(indicatorItem, "icon0"), "color", "#ffffff");
360+ tryCompare(findChild(indicatorItem, "icon0"), "color", theme.palette.normal.backgroundText);
361 tryCompare(findChild(indicatorItem, "icon0"), "opacity", 1.0);
362- tryCompare(findChild(indicatorItem, "leftLabel"), "color", "#ffffff");
363- tryCompare(findChild(indicatorItem, "rightLabel"), "color", "#ffffff");
364- tryCompare(findChild(indicatorItem, "indicatorName"), "color", "#ffffff");
365+ tryCompare(findChild(indicatorItem, "leftLabel"), "color", theme.palette.normal.backgroundText);
366+ tryCompare(findChild(indicatorItem, "rightLabel"), "color", theme.palette.normal.backgroundText);
367+ tryCompare(findChild(indicatorItem, "indicatorName"), "color", theme.palette.normal.backgroundText);
368 }
369 }
370 }
371
372=== modified file 'tests/qmltests/Panel/tst_Panel.qml'
373--- tests/qmltests/Panel/tst_Panel.qml 2015-11-18 15:12:56 +0000
374+++ tests/qmltests/Panel/tst_Panel.qml 2016-03-04 21:01:30 +0000
375@@ -31,6 +31,8 @@
376 height: units.gu(71)
377 color: "white"
378
379+ Component.onCompleted: theme.name = "Ubuntu.Components.Themes.SuruDark"
380+
381 Binding {
382 target: mouseEmulation
383 property: "checked"

Subscribers

People subscribed via source and target branches