Merge lp:~mzanetti/unity8/rework-quicklist-visuals into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Michael Terry
Approved revision: 1361
Merged at revision: 1400
Proposed branch: lp:~mzanetti/unity8/rework-quicklist-visuals
Merge into: lp:unity8
Prerequisite: lp:~dandrader/unity8/touchOwnership
Diff against target: 120 lines (+22/-21)
2 files modified
qml/Launcher/LauncherPanel.qml (+16/-15)
tests/qmltests/Launcher/tst_Launcher.qml (+6/-6)
To merge this branch: bzr merge lp:~mzanetti/unity8/rework-quicklist-visuals
Reviewer Review Type Date Requested Status
Michael Terry Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Daniel d'Andrada (community) Abstain
Review via email: mp+238149@code.launchpad.net

This proposal supersedes a proposal from 2014-10-10.

Commit message

rework launcher quicklist visuals to fit new design

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.

no

 * 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?

change requested by design. see linked bug report

To post a comment you must log in.
Revision history for this message
Michael Terry (mterry) wrote : Posted in a previous version of this proposal

Based on the visuals Design provided, you may want to make the popup even more opaque.

Also, I get white text on white background with this branch.

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

Much better. Opacity still seems higher in the design visuals to me, but it's close.

If you're going to use Theme.palette.normal.highlightText, mightn't you want to use Theme.palette.normal.highlight as the background color? (i.e. either use palette colors for both or hardcode both)

Also, highlightText isn't in the SDK: http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Components.Themes.PaletteValues/ Is that from an older version of the SDK?

Revision history for this message
Michael Terry (mterry) wrote : Posted in a previous version of this proposal

Nailed it! :)

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

 * Did CI run pass? If not, please explain why.
 Naw, for normal reasons.

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

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

"""
- dragLauncherIntoView();
+ revealer.dragLauncherIntoView();
"""

"""
- dragLauncherIntoView();
+ revealer.dragLauncherIntoView();
"""

There's no "revealer" anymore in tst_Launcher.qml after the refactoring done by touchOwnership branch.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1359. By Michael Zanetti

fix bad merge

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> """
> - dragLauncherIntoView();
> + revealer.dragLauncherIntoView();
> """
>
> """
> - dragLauncherIntoView();
> + revealer.dragLauncherIntoView();
> """
>
> There's no "revealer" anymore in tst_Launcher.qml after the refactoring done
> by touchOwnership branch.

fixxxt

Revision history for this message
Daniel d'Andrada (dandrader) :
review: Abstain
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

Text conflict in qml/Dash/GenericScopeView.qml
1 conflicts encountered.

1360. By Michael Zanetti

merge trunk

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

qml/Dash/GenericScopeView.qml has a bad merge

1361. By Michael Zanetti

fix bad merge

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
Michael Terry (mterry) wrote :

LGTM again, merges fine

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Launcher/LauncherPanel.qml'
2--- qml/Launcher/LauncherPanel.qml 2014-10-13 15:42:40 +0000
3+++ qml/Launcher/LauncherPanel.qml 2014-10-15 08:17:14 +0000
4@@ -14,9 +14,9 @@
5 * along with this program. If not, see <http://www.gnu.org/licenses/>.
6 */
7
8-import QtQuick 2.0
9-import Ubuntu.Components 0.1
10-import Ubuntu.Components.ListItems 0.1 as ListItems
11+import QtQuick 2.3
12+import Ubuntu.Components 1.1
13+import Ubuntu.Components.ListItems 1.0 as ListItems
14 import Unity.Launcher 0.1
15 import Ubuntu.Components.Popups 0.1
16 import "../Components/ListItems"
17@@ -485,7 +485,7 @@
18 id: quickListShape
19 objectName: "quickListShape"
20 anchors.fill: quickList
21- opacity: quickList.state === "open" ? 0.8 : 0
22+ opacity: quickList.state === "open" ? 0.96 : 0
23 visible: opacity > 0
24 rotation: root.rotation
25
26@@ -497,15 +497,15 @@
27
28 Image {
29 anchors {
30- right: parent.left
31- rightMargin: -units.dp(4)
32+ left: parent.left
33+ leftMargin: (quickList.item.width - units.gu(1)) / 2 - width / 2
34 verticalCenter: parent.verticalCenter
35- verticalCenterOffset: -quickList.offset
36+ verticalCenterOffset: (parent.height / 2 + units.dp(3)) * (quickList.offset > 0 ? 1 : -1)
37 }
38 height: units.gu(1)
39 width: units.gu(2)
40 source: "graphics/quicklist_tooltip.png"
41- rotation: 90
42+ rotation: quickList.offset > 0 ? 0 : 180
43 }
44
45 InverseMouseArea {
46@@ -521,16 +521,16 @@
47 Rectangle {
48 id: quickList
49 objectName: "quickList"
50- color: "#221e1c"
51+ color: "#f5f5f5"
52 width: units.gu(30)
53 height: quickListColumn.height
54 visible: quickListShape.visible
55 anchors {
56- left: root.inverted ? undefined : parent.right
57- right: root.inverted ? parent.left : undefined
58+ left: root.inverted ? undefined : parent.left
59+ right: root.inverted ? parent.right : undefined
60 margins: units.gu(1)
61 }
62- y: itemCenter - (height / 2) + offset
63+ y: itemCenter + offset
64 rotation: root.rotation
65
66 property var model
67@@ -539,8 +539,9 @@
68
69 // internal
70 property int itemCenter: item ? root.mapFromItem(quickList.item).y + (item.height / 2) : units.gu(1)
71- property int offset: itemCenter + (height/2) + units.gu(1) > parent.height ? -itemCenter - (height/2) - units.gu(1) + parent.height :
72- itemCenter - (height/2) < units.gu(1) ? (height/2) - itemCenter + units.gu(1) : 0
73+ property int offset: itemCenter + (item.height/2) + height + units.gu(1) > parent.height ?
74+ -(item.height/2) - height - units.gu(.5) :
75+ (item.height/2) + units.gu(.5)
76
77 Column {
78 id: quickListColumn
79@@ -559,7 +560,7 @@
80 // FIXME: This is a workaround for the theme not being context sensitive. I.e. the
81 // ListItems don't know that they are sitting in a themed Popover where the color
82 // needs to be inverted.
83- __foregroundColor: Theme.palette.selected.backgroundText
84+ __foregroundColor: "black"
85
86 onClicked: {
87 if (!model.clickable) {
88
89=== modified file 'qml/Launcher/graphics/quicklist_tooltip@30.png'
90Binary files qml/Launcher/graphics/quicklist_tooltip@30.png 2013-08-22 09:34:39 +0000 and qml/Launcher/graphics/quicklist_tooltip@30.png 2014-10-15 08:17:14 +0000 differ
91=== modified file 'tests/qmltests/Launcher/tst_Launcher.qml'
92--- tests/qmltests/Launcher/tst_Launcher.qml 2014-10-03 12:42:48 +0000
93+++ tests/qmltests/Launcher/tst_Launcher.qml 2014-10-15 08:17:14 +0000
94@@ -431,20 +431,20 @@
95 }
96
97 // Doing longpress
98- mousePress(draggedItem, draggedItem.width / 2, draggedItem.height / 2)
99- tryCompare(quickListShape, "opacity", 0.8)
100+ mousePress(draggedItem, draggedItem.width / 2, draggedItem.height / 2);
101+ tryCompare(quickListShape, "opacity", 0.96);
102 mouseRelease(draggedItem);
103
104- verify(quickList.y >= units.gu(1))
105- verify(quickList.y + quickList.height + units.gu(1) <= launcher.height)
106+ verify(quickList.y >= units.gu(1));
107+ verify(quickList.y + quickList.height + units.gu(1) <= launcher.height);
108
109 // Click somewhere in the empty space to dismiss the quicklist
110 mouseClick(launcher, launcher.width - units.gu(1), units.gu(1));
111- tryCompare(quickListShape, "visible", false)
112+ tryCompare(quickListShape, "visible", false);
113
114 // Click somewhere in the empty space to dismiss the launcher
115 mouseClick(launcher, launcher.width - units.gu(1), units.gu(1));
116- waitUntilLauncherDisappears()
117+ waitUntilLauncherDisappears();
118 }
119
120 function test_quicklist_click_data() {

Subscribers

People subscribed via source and target branches