Merge lp:~gerboland/unity-2d/launcher-tweaks into lp:unity-2d

Proposed by Gerry Boland
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 932
Merged at revision: 936
Proposed branch: lp:~gerboland/unity-2d/launcher-tweaks
Merge into: lp:unity-2d
Diff against target: 73 lines (+18/-2)
2 files modified
shell/launcher/Launcher.qml (+17/-1)
shell/launcher/LauncherList.qml (+1/-1)
To merge this branch: bzr merge lp:~gerboland/unity-2d/launcher-tweaks
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Approve
Xi Zhu (community) design Approve
Michał Sawicz Needs Information
Andrea Cimitan Pending
Lohith D Shivamurthy Pending
Review via email: mp+93798@code.launchpad.net

Description of the change

[launcher] Pixel-perfection changes: add glow-less assets, position tiles 6 pixels from screen edge, add white 15% opaque line as launcher border, and move activity pip to border this line. Context menu arrow overlaps activity pip.

To post a comment you must log in.
Revision history for this message
Michał Sawicz (saviq) wrote :

Shouldn't we have a before / after screenshots here for design to sign off on?

review: Needs Information
Revision history for this message
Gerry Boland (gerboland) wrote :

Indeed I should have:
before: https://imgur.com/2OPel
after: https://imgur.com/wDIB0

Revision history for this message
Gerry Boland (gerboland) wrote :

And for the context menu:
before: https://imgur.com/a/ZZJQV
after: https://imgur.com/ga4az

Revision history for this message
Xi Zhu (xi.zhu) :
review: Approve (design)
929. By Gerry Boland

Merge trunk

Revision history for this message
Albert Astals Cid (aacid) wrote :

In
 anchors.rightMargin: declarativeView.dashActive ? 0 : 1
should that 1 be border.width?

I find it confusing to have one Item Accessible.name: "borderWithDash" and id: border and then a different Item with Accessible.name: "border" and no id, woulnd't it be better to name the second one "borderWithoutDash" and not change the first one?

In the second "border" i think it'd be better if you bind all the other properties to the "first" border, so if something changes we just need to change one, i.e.

anchors.right: border.anchors.right
anchors.left: border.anchors.left
visible: !border.visible

930. By Gerry Boland

Use border.width instead of 1

931. By Gerry Boland

Border line & image share anchors

932. By Gerry Boland

Use better accessible name for border line

Revision history for this message
Gerry Boland (gerboland) wrote :

Ok, code-fixes made.

Revision history for this message
Albert Astals Cid (aacid) wrote :

I'll be more of a pain yet, i think m_arrowY value in LauncherContextualMenu::show should be set to 7 and not 6, otherwise the pip and the menu arrow do not totally overlap (Yes this nagged me the first time i saw it visually)

review: Needs Fixing
Revision history for this message
Albert Astals Cid (aacid) wrote :

Approving, the 7/6 thing is not something Gerry "broke" and actually while it looks better for me with a 7 it looks better for him with a 6, so future work

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'shell/launcher/Launcher.qml'
2--- shell/launcher/Launcher.qml 2012-02-23 10:13:49 +0000
3+++ shell/launcher/Launcher.qml 2012-02-24 13:16:19 +0000
4@@ -65,23 +65,38 @@
5 Rectangle {
6 Accessible.name: "background"
7 anchors.fill: parent
8+ anchors.rightMargin: declarativeView.dashActive ? 0 : border.width
9 color: "black"
10 opacity: 0.66
11 visible: desktop.isCompositingManagerRunning
12 }
13
14 Image {
15- Accessible.name: "border"
16+ Accessible.name: "borderWithDash"
17 id: border
18
19 width: 1
20 height: parent.height
21 anchors.right: Utils.isLeftToRight() ? parent.right : undefined
22 anchors.left: Utils.isLeftToRight() ? undefined : parent.left
23+ visible: declarativeView.dashActive
24 source: "artwork/border.png"
25 fillMode: Image.Stretch
26 }
27
28+ Rectangle {
29+ Accessible.name: "borderWithoutDash"
30+
31+ width: border.width
32+ height: parent.height
33+ anchors.right: border.anchors.right
34+ anchors.left: border.anchors.left
35+ visible: !declarativeView.dashActive
36+
37+ color: "white"
38+ opacity: 0.15
39+ }
40+
41 onDesktopFileDropped: applications.insertFavoriteApplication(path)
42 onWebpageUrlDropped: applications.insertWebFavorite(url)
43
44@@ -90,6 +105,7 @@
45
46 focus: true
47 anchors.fill: parent
48+ anchors.rightMargin: border.width
49 z: 1 /* ensure the lists are always strictly on top of the background */
50
51 LauncherList {
52
53=== modified file 'shell/launcher/LauncherList.qml'
54--- shell/launcher/LauncherList.qml 2012-02-23 11:23:52 +0000
55+++ shell/launcher/LauncherList.qml 2012-02-24 13:16:19 +0000
56@@ -157,7 +157,7 @@
57 list.visibleMenu.hide()
58 }
59 list.visibleMenu = item.menu
60- item.menu.show(width, declarativeView.globalPosition.y + list.y - list.contentY +
61+ item.menu.show(width - 5, declarativeView.globalPosition.y + list.y - list.contentY +
62 y + height - selectionOutlineSize / 2)
63 }
64
65
66=== modified file 'shell/launcher/artwork/launcher_arrow_ltr.png'
67Binary files shell/launcher/artwork/launcher_arrow_ltr.png 2011-11-11 10:19:14 +0000 and shell/launcher/artwork/launcher_arrow_ltr.png 2012-02-24 13:16:19 +0000 differ
68=== modified file 'shell/launcher/artwork/launcher_arrow_outline_ltr.png'
69Binary files shell/launcher/artwork/launcher_arrow_outline_ltr.png 2012-01-23 13:23:59 +0000 and shell/launcher/artwork/launcher_arrow_outline_ltr.png 2012-02-24 13:16:19 +0000 differ
70=== modified file 'shell/launcher/artwork/launcher_arrow_rtl.png'
71Binary files shell/launcher/artwork/launcher_arrow_rtl.png 2011-11-11 10:19:14 +0000 and shell/launcher/artwork/launcher_arrow_rtl.png 2012-02-24 13:16:19 +0000 differ
72=== modified file 'shell/launcher/artwork/launcher_pip_ltr.png'
73Binary files shell/launcher/artwork/launcher_pip_ltr.png 2011-11-11 10:19:14 +0000 and shell/launcher/artwork/launcher_pip_ltr.png 2012-02-24 13:16:19 +0000 differ

Subscribers

People subscribed via source and target branches