Merge lp:~tiagosh/unity-2d/bugfix-838708 into lp:unity-2d

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Lohith D Shivamurthy
Approved revision: 829
Merged at revision: 834
Proposed branch: lp:~tiagosh/unity-2d/bugfix-838708
Merge into: lp:unity-2d
Diff against target: 73 lines (+13/-2)
2 files modified
launcher/LauncherItem.qml (+11/-2)
launcher/LauncherList.qml (+2/-0)
To merge this branch: bzr merge lp:~tiagosh/unity-2d/bugfix-838708
Reviewer Review Type Date Requested Status
Lohith D Shivamurthy (community) Approve
Review via email: mp+85677@code.launchpad.net

Description of the change

This merge request intends to fix lp:838708, making BFB behavior and visual match the design.

To post a comment you must log in.
lp:~tiagosh/unity-2d/bugfix-838708 updated
828. By Tiago Salem Herrmann

[launcher] make bfb totally opaque while the launcher background design is not fully implemented

Revision history for this message
Lohith D Shivamurthy (dyams) wrote :

Hey Tiagosh, You have effectively removed the 'tileBackground' in LauncherItem by setting its opacity to zero.
Now its useful only while animating 'launching'.
Is that correct? Could you please check it again?

review: Needs Information (code)
lp:~tiagosh/unity-2d/bugfix-838708 updated
829. By Tiago Salem Herrmann

[launcher] fix previous commit. Make it fully opaque by setting it to 1

Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

It was a mistake. Just fixed.

Revision history for this message
Lohith D Shivamurthy (dyams) wrote :

> It was a mistake. Just fixed.

Thank you.
You have removed the blend effect for 'BFB' tileBackground.
File LauncherItem.qml, Line #215
The other tiles have that effect still.
Is that intentional? Bug report says that that effect is needed for BFB though.

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

Yes its intentional. Since we are missing the blurred & tinted background, the blend effect makes the BFB very hard to see. This is a compromise for now.

Revision history for this message
Lohith D Shivamurthy (dyams) wrote :

> Yes its intentional. Since we are missing the blurred & tinted background, the
> blend effect makes the BFB very hard to see. This is a compromise for now.
OK, I agree with you.

Looking good and It is good to approve this already.
Approving.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'launcher/LauncherItem.qml'
2--- launcher/LauncherItem.qml 2011-12-19 09:11:18 +0000
3+++ launcher/LauncherItem.qml 2011-12-20 14:54:24 +0000
4@@ -54,6 +54,7 @@
5
6 height: selectionOutlineSize
7
8+ property bool isBfb: false
9 property int tileSize
10 property int selectionOutlineSize
11 property alias name: looseItem.objectName
12@@ -200,6 +201,7 @@
13 property color color: defaultBackgroundColor
14 anchors.fill: parent
15 smooth: true
16+ opacity: 1
17
18 SequentialAnimation on opacity {
19 NumberAnimation { to: 0.0; duration: 1000; easing.type: Easing.InOutQuad }
20@@ -213,6 +215,13 @@
21 sourceSize.width: item.tileSize
22 sourceSize.height: item.tileSize
23 source: {
24+ if (isBfb) {
25+ if(launcherView.focus && item.activeFocus) {
26+ return "artwork/squircle_base_selected_54.png"
27+ } else {
28+ return "artwork/squircle_base_54.png"
29+ }
30+ }
31 var actualColor = launcherView.focus && item.activeFocus ? selectedBackgroundColor : color
32 return "image://blended/%1color=%2alpha=%3"
33 .arg("artwork/round_corner_54x54.png")
34@@ -275,7 +284,7 @@
35 anchors.fill: parent
36 smooth: true
37
38- source: "artwork/round_shine_54x54.png"
39+ source: isBfb ? "artwork/squircle_shine_54.png" : "artwork/round_shine_54x54.png"
40 sourceSize.width: item.tileSize
41 sourceSize.height: item.tileSize
42 }
43@@ -285,7 +294,7 @@
44 objectName: "selectionOutline"
45 anchors.centerIn: parent
46 smooth: true
47- source: "artwork/round_selected_66x66.png"
48+ source: isBfb ? "artwork/squircle_glow_54.png" : "artwork/round_selected_66x66.png"
49 visible: launcherView.focus && item.activeFocus
50 }
51
52
53=== modified file 'launcher/LauncherList.qml'
54--- launcher/LauncherList.qml 2011-12-19 09:11:18 +0000
55+++ launcher/LauncherList.qml 2011-12-20 14:54:24 +0000
56@@ -137,6 +137,8 @@
57 onDragEnter: item.onDragEnter(event)
58 onDrop: item.onDrop(event)
59
60+ isBfb: (item.toString().indexOf("BfbItem") == 0)
61+
62 function showMenu() {
63 /* Prevent the simultaneous display of multiple menus */
64 if (list.visibleMenu != item.menu && list.visibleMenu != undefined) {
65
66=== added file 'launcher/artwork/squircle_base_54.png'
67Binary files launcher/artwork/squircle_base_54.png 1970-01-01 00:00:00 +0000 and launcher/artwork/squircle_base_54.png 2011-12-20 14:54:24 +0000 differ
68=== added file 'launcher/artwork/squircle_base_selected_54.png'
69Binary files launcher/artwork/squircle_base_selected_54.png 1970-01-01 00:00:00 +0000 and launcher/artwork/squircle_base_selected_54.png 2011-12-20 14:54:24 +0000 differ
70=== added file 'launcher/artwork/squircle_glow_54.png'
71Binary files launcher/artwork/squircle_glow_54.png 1970-01-01 00:00:00 +0000 and launcher/artwork/squircle_glow_54.png 2011-12-20 14:54:24 +0000 differ
72=== added file 'launcher/artwork/squircle_shine_54.png'
73Binary files launcher/artwork/squircle_shine_54.png 1970-01-01 00:00:00 +0000 and launcher/artwork/squircle_shine_54.png 2011-12-20 14:54:24 +0000 differ

Subscribers

People subscribed via source and target branches