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
=== modified file 'launcher/LauncherItem.qml'
--- launcher/LauncherItem.qml 2011-12-19 09:11:18 +0000
+++ launcher/LauncherItem.qml 2011-12-20 14:54:24 +0000
@@ -54,6 +54,7 @@
5454
55 height: selectionOutlineSize55 height: selectionOutlineSize
5656
57 property bool isBfb: false
57 property int tileSize58 property int tileSize
58 property int selectionOutlineSize59 property int selectionOutlineSize
59 property alias name: looseItem.objectName60 property alias name: looseItem.objectName
@@ -200,6 +201,7 @@
200 property color color: defaultBackgroundColor201 property color color: defaultBackgroundColor
201 anchors.fill: parent202 anchors.fill: parent
202 smooth: true203 smooth: true
204 opacity: 1
203205
204 SequentialAnimation on opacity {206 SequentialAnimation on opacity {
205 NumberAnimation { to: 0.0; duration: 1000; easing.type: Easing.InOutQuad }207 NumberAnimation { to: 0.0; duration: 1000; easing.type: Easing.InOutQuad }
@@ -213,6 +215,13 @@
213 sourceSize.width: item.tileSize215 sourceSize.width: item.tileSize
214 sourceSize.height: item.tileSize216 sourceSize.height: item.tileSize
215 source: {217 source: {
218 if (isBfb) {
219 if(launcherView.focus && item.activeFocus) {
220 return "artwork/squircle_base_selected_54.png"
221 } else {
222 return "artwork/squircle_base_54.png"
223 }
224 }
216 var actualColor = launcherView.focus && item.activeFocus ? selectedBackgroundColor : color225 var actualColor = launcherView.focus && item.activeFocus ? selectedBackgroundColor : color
217 return "image://blended/%1color=%2alpha=%3"226 return "image://blended/%1color=%2alpha=%3"
218 .arg("artwork/round_corner_54x54.png")227 .arg("artwork/round_corner_54x54.png")
@@ -275,7 +284,7 @@
275 anchors.fill: parent284 anchors.fill: parent
276 smooth: true285 smooth: true
277286
278 source: "artwork/round_shine_54x54.png"287 source: isBfb ? "artwork/squircle_shine_54.png" : "artwork/round_shine_54x54.png"
279 sourceSize.width: item.tileSize288 sourceSize.width: item.tileSize
280 sourceSize.height: item.tileSize289 sourceSize.height: item.tileSize
281 }290 }
@@ -285,7 +294,7 @@
285 objectName: "selectionOutline"294 objectName: "selectionOutline"
286 anchors.centerIn: parent295 anchors.centerIn: parent
287 smooth: true296 smooth: true
288 source: "artwork/round_selected_66x66.png"297 source: isBfb ? "artwork/squircle_glow_54.png" : "artwork/round_selected_66x66.png"
289 visible: launcherView.focus && item.activeFocus298 visible: launcherView.focus && item.activeFocus
290 }299 }
291300
292301
=== modified file 'launcher/LauncherList.qml'
--- launcher/LauncherList.qml 2011-12-19 09:11:18 +0000
+++ launcher/LauncherList.qml 2011-12-20 14:54:24 +0000
@@ -137,6 +137,8 @@
137 onDragEnter: item.onDragEnter(event)137 onDragEnter: item.onDragEnter(event)
138 onDrop: item.onDrop(event)138 onDrop: item.onDrop(event)
139139
140 isBfb: (item.toString().indexOf("BfbItem") == 0)
141
140 function showMenu() {142 function showMenu() {
141 /* Prevent the simultaneous display of multiple menus */143 /* Prevent the simultaneous display of multiple menus */
142 if (list.visibleMenu != item.menu && list.visibleMenu != undefined) {144 if (list.visibleMenu != item.menu && list.visibleMenu != undefined) {
143145
=== added file 'launcher/artwork/squircle_base_54.png'
144Binary 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 differ146Binary 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
=== added file 'launcher/artwork/squircle_base_selected_54.png'
145Binary 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 differ147Binary 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
=== added file 'launcher/artwork/squircle_glow_54.png'
146Binary 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 differ148Binary 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
=== added file 'launcher/artwork/squircle_shine_54.png'
147Binary 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 differ149Binary 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