Merge lp:~sladen/unity-2d/unity-2d-no-glow-lp933578 into lp:unity-2d

Proposed by Paul Sladen
Status: Merged
Approved by: Gerry Boland
Approved revision: 945
Merged at revision: 937
Proposed branch: lp:~sladen/unity-2d/unity-2d-no-glow-lp933578
Merge into: lp:unity-2d
Diff against target: 170 lines (+2/-64)
8 files modified
shell/common/SearchEntry.qml (+0/-10)
shell/common/artwork/desktop_dash_background.sci (+2/-2)
shell/dash/CategoryHeader.qml (+0/-16)
shell/dash/LensBar.qml (+0/-6)
shell/dash/LensButton.qml (+0/-8)
shell/dash/MultiRangeButton.qml (+0/-7)
shell/dash/Star.qml (+0/-7)
shell/dash/TickBox.qml (+0/-8)
To merge this branch: bzr merge lp:~sladen/unity-2d/unity-2d-no-glow-lp933578
Reviewer Review Type Date Requested Status
Gerry Boland (community) functional Approve
Xi Zhu (community) design Approve
Michał Sawicz Needs Fixing
Paul Sladen Pending
Review via email: mp+94597@code.launchpad.net

This proposal supersedes a proposal from 2012-02-24.

Description of the change

No Glow assets + fixups for (LP: #933578)
This includes replacements assets for:
  Pips + arrows
  Dash search box and search box status icons
  Dash edge background (transparent)
  Dash edge background (non-transparent)
With associated code changes:
  Removal of blurRadius except for background itself
  Background tiling phase realignment for transparent background

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

Just removing "blurRadius" from DropShadows means the shadow will actually be there, and drawn, just that it won't blur. So you end up with a (expensive) copy of the text behind it.

Please completely remove the whole "effect: DropShadow {...}" properties to actually get rid of the shadows.

review: Needs Fixing
Revision history for this message
Michał Sawicz (saviq) wrote : Posted in a previous version of this proposal

Please also provide a before and after images for design sign-off.

review: Needs Fixing
Revision history for this message
Michał Sawicz (saviq) wrote : Posted in a previous version of this proposal

We need a way to indicate focus on the "Filter results", it was only being highlighted with the glow, now it's too easy to get "lost" in the dash when keyboard-navigating.

We have a similar issue with category headers that don't have "expand" links, so consistency here would probably make sense (not "it's broken" consistency, but a way to indicate focus on them).

review: Needs Fixing
Revision history for this message
Paul Sladen (sladen) wrote : Posted in a previous version of this proposal

I believe in all of these locations hover/focus is indicated by colour:white && blurRadius. The colour: white is still there and continues to provide the primary highlight.

There is a design solution for replacing the white highlight with a full-width background grey highlight, and this is in Unity 3D. However, Gerry requested that the merge say on focus and be a minimal diff without other changes other than removing the glow from the assets and code.

Revision history for this message
Paul Sladen (sladen) wrote : Posted in a previous version of this proposal

Before, After, and Delta screenshots attached to parent bug report.

review: Needs Resubmitting
Revision history for this message
Michał Sawicz (saviq) wrote : Posted in a previous version of this proposal

> I believe in all of these locations hover/focus is indicated by colour:white
> && blurRadius. The colour: white is still there and continues to provide the
> primary highlight.

> There is a design solution for replacing the white highlight with a full-width
> background grey highlight, and this is in Unity 3D.

Except that the label I mentioned ("Filter results") is already white, so we lose
focus indication completely. Please leave that one instance of the glow in place,
we'll fix the whole approach to focus in dash in a separate MR.

> However, Gerry requested that the merge say on focus and be a minimal diff
> without other changes other than removing the glow from the assets and code.

That's ok, but just removing the blurRadius property doesn't make sense. The whole
"effect: DropShadow { ... }" component is responsible for just the glow, so to remove
the glow we need to remove the whole of it.

Revision history for this message
Paul Sladen (sladen) wrote : Posted in a previous version of this proposal

Done on both accounts.

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

One last thing:
=== renamed file 'shell/launcher/artwork/launcher_pip_ltr.png' => 'shell/launcher/artwork/launcher_pip_ltr.png.OTHER'

That doesn't look right?

review: Needs Fixing
944. By Paul Sladen

Merge to HEAD; manually resolve binary merge conflict:
  shell/launcher/artwork/launcher_pip_ltr.png

945. By Paul Sladen

Restore property moving && associated workaround warnings

Revision history for this message
Xi Zhu (xi.zhu) wrote :

No glow is fine.

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

Functional test looks good, code looks ok, approving!

Thank you Paul.
-G

review: Approve (functional)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'shell/common/SearchEntry.qml'
--- shell/common/SearchEntry.qml 2012-02-15 13:26:26 +0000
+++ shell/common/SearchEntry.qml 2012-02-27 16:59:19 +0000
@@ -87,16 +87,6 @@
87 Accessible.name: searchInstructions.text87 Accessible.name: searchInstructions.text
88 Accessible.role: Accessible.EditableText88 Accessible.role: Accessible.EditableText
8989
90 effect: DropShadow {
91 id: glow
92
93 blurRadius: 4
94 offset.x: 0
95 offset.y: 0
96 color: "white"
97 enabled: searchInput.text != "" || searchInput.inputMethodComposing
98 }
99
100 anchors.left: searchIcon.right90 anchors.left: searchIcon.right
101 anchors.leftMargin: -591 anchors.leftMargin: -5
102 anchors.right: parent.right92 anchors.right: parent.right
10393
=== modified file 'shell/common/artwork/desktop_dash_background.png'
104Binary files shell/common/artwork/desktop_dash_background.png 2012-01-30 17:23:42 +0000 and shell/common/artwork/desktop_dash_background.png 2012-02-27 16:59:19 +0000 differ94Binary files shell/common/artwork/desktop_dash_background.png 2012-01-30 17:23:42 +0000 and shell/common/artwork/desktop_dash_background.png 2012-02-27 16:59:19 +0000 differ
=== modified file 'shell/common/artwork/desktop_dash_background.sci'
--- shell/common/artwork/desktop_dash_background.sci 2012-01-30 17:23:42 +0000
+++ shell/common/artwork/desktop_dash_background.sci 2012-02-27 16:59:19 +0000
@@ -1,7 +1,7 @@
1border.left: 01border.left: 0
2border.top: 02border.top: 0
3border.bottom: 453border.bottom: 43
4border.right: 464border.right: 44
5source: desktop_dash_background.png5source: desktop_dash_background.png
6horizontalTileRule: Repeat6horizontalTileRule: Repeat
7verticalTileRule: Repeat7verticalTileRule: Repeat
88
=== modified file 'shell/common/artwork/desktop_dash_background_no_transparency.png'
9Binary files shell/common/artwork/desktop_dash_background_no_transparency.png 2012-01-30 17:23:42 +0000 and shell/common/artwork/desktop_dash_background_no_transparency.png 2012-02-27 16:59:19 +0000 differ9Binary files shell/common/artwork/desktop_dash_background_no_transparency.png 2012-01-30 17:23:42 +0000 and shell/common/artwork/desktop_dash_background_no_transparency.png 2012-02-27 16:59:19 +0000 differ
=== modified file 'shell/common/artwork/search_background.png'
10Binary files shell/common/artwork/search_background.png 2012-02-01 23:52:38 +0000 and shell/common/artwork/search_background.png 2012-02-27 16:59:19 +0000 differ10Binary files shell/common/artwork/search_background.png 2012-02-01 23:52:38 +0000 and shell/common/artwork/search_background.png 2012-02-27 16:59:19 +0000 differ
=== modified file 'shell/common/artwork/search_icon.png'
11Binary files shell/common/artwork/search_icon.png 2012-02-01 23:52:38 +0000 and shell/common/artwork/search_icon.png 2012-02-27 16:59:19 +0000 differ11Binary files shell/common/artwork/search_icon.png 2012-02-01 23:52:38 +0000 and shell/common/artwork/search_icon.png 2012-02-27 16:59:19 +0000 differ
=== modified file 'shell/dash/CategoryHeader.qml'
--- shell/dash/CategoryHeader.qml 2012-01-10 16:52:24 +0000
+++ shell/dash/CategoryHeader.qml 2012-02-27 16:59:19 +0000
@@ -36,14 +36,6 @@
3636
37 Accessible.name: "%1 %2 %3".arg(title.text).arg(label.text).arg(folded ? u2d.tr("not expanded") : u2d.tr("expanded"))37 Accessible.name: "%1 %2 %3".arg(title.text).arg(label.text).arg(folded ? u2d.tr("not expanded") : u2d.tr("expanded"))
3838
39 effect: DropShadow {
40 blurRadius: 6
41 offset.x: 0
42 offset.y: 0
43 color: "white"
44 enabled: ( categoryHeader.state == "pressed" && !moving )
45 }
46
47 Image {39 Image {
48 id: iconImage40 id: iconImage
4941
@@ -81,14 +73,6 @@
81 || categoryHeader.state == "hovered" ) ? 1.0 : 0.573 || categoryHeader.state == "hovered" ) ? 1.0 : 0.5
82 Behavior on opacity {NumberAnimation { duration: 100 }}74 Behavior on opacity {NumberAnimation { duration: 100 }}
8375
84 effect: DropShadow {
85 blurRadius: 4
86 offset.x: 0
87 offset.y: 0
88 color: "white"
89 enabled: ( moreResults.opacity == 1.0 && !moving )
90 }
91
92 TextCustom {76 TextCustom {
93 id: label77 id: label
9478
9579
=== modified file 'shell/dash/LensBar.qml'
--- shell/dash/LensBar.qml 2012-02-10 20:25:00 +0000
+++ shell/dash/LensBar.qml 2012-02-27 16:59:19 +0000
@@ -43,12 +43,6 @@
43 }43 }
4444
45 /* LensBar contains a row of LensButtons */45 /* LensBar contains a row of LensButtons */
46
47 /* Ugly Hack: the DropShadow effect on the Home lensButton causes visual artifacts as
48 the list of lenses is being populated, when the inter-lensButton spacing is non-zero.
49 A previously painted DropShadow remains in the (transparent) inter-lensButton space.
50 Can work around this by removing spacing and instead add padding to each lensButton.
51 DropShadow not officially supported until Qt4.8, when hopefully this will be fixed. */
52 Row {46 Row {
53 id: lensContainer47 id: lensContainer
5448
5549
=== modified file 'shell/dash/LensButton.qml'
--- shell/dash/LensButton.qml 2011-12-08 19:16:20 +0000
+++ shell/dash/LensButton.qml 2012-02-27 16:59:19 +0000
@@ -31,14 +31,6 @@
3131
32 id: lensButton32 id: lensButton
3333
34 effect: DropShadow {
35 blurRadius: 8
36 color: "white"
37 offset.x: 0
38 offset.y: 0
39 enabled: ( lensButton.state == "selected" || active )
40 }
41
42 Rectangle {34 Rectangle {
43 anchors.fill: parent35 anchors.fill: parent
44 anchors.topMargin: 736 anchors.topMargin: 7
4537
=== modified file 'shell/dash/MultiRangeButton.qml'
--- shell/dash/MultiRangeButton.qml 2011-11-29 17:45:27 +0000
+++ shell/dash/MultiRangeButton.qml 2012-02-27 16:59:19 +0000
@@ -43,13 +43,6 @@
43 text: multiRangeButton.text43 text: multiRangeButton.text
44 elide: Text.ElideRight44 elide: Text.ElideRight
4545
46 effect: DropShadow {
47 blurRadius: 8
48 color: "white"
49 offset.x: 0
50 offset.y: 0
51 enabled: ( multiRangeButton.state == "selected" )
52 }
53 }46 }
5447
55 Rectangle {48 Rectangle {
5649
=== modified file 'shell/dash/Star.qml'
--- shell/dash/Star.qml 2011-11-25 15:44:18 +0000
+++ shell/dash/Star.qml 2012-02-27 16:59:19 +0000
@@ -29,13 +29,6 @@
29 width: childrenRect.width29 width: childrenRect.width
30 height: childrenRect.height30 height: childrenRect.height
3131
32 effect: DropShadow {
33 blurRadius: 8
34 color: "white"
35 offset.x: 0
36 offset.y: 0
37 }
38
39 Image {32 Image {
40 width: sourceSize.width33 width: sourceSize.width
41 height: sourceSize.height34 height: sourceSize.height
4235
=== modified file 'shell/dash/TickBox.qml'
--- shell/dash/TickBox.qml 2012-01-10 16:52:24 +0000
+++ shell/dash/TickBox.qml 2012-02-27 16:59:19 +0000
@@ -33,14 +33,6 @@
33 width: childrenRect.width33 width: childrenRect.width
34 height: childrenRect.height34 height: childrenRect.height
3535
36 effect: DropShadow {
37 blurRadius: 8
38 color: "white"
39 offset.x: 0
40 offset.y: 0
41 enabled: ( tickBox.state == "selected" )
42 }
43
44 Rectangle {36 Rectangle {
45 id: container37 id: container
4638
4739
=== modified file 'shell/launcher/artwork/launcher_pip_ltr.png'
48Binary files shell/launcher/artwork/launcher_pip_ltr.png 2012-02-18 15:15:31 +0000 and shell/launcher/artwork/launcher_pip_ltr.png 2012-02-27 16:59:19 +0000 differ40Binary files shell/launcher/artwork/launcher_pip_ltr.png 2012-02-18 15:15:31 +0000 and shell/launcher/artwork/launcher_pip_ltr.png 2012-02-27 16:59:19 +0000 differ

Subscribers

People subscribed via source and target branches