Merge lp:~townsend/unity/fix-lp1309739 into lp:unity

Proposed by Christopher Townsend
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: no longer in the source branch.
Merged at revision: 3812
Proposed branch: lp:~townsend/unity/fix-lp1309739
Merge into: lp:unity
Diff against target: 3 lines (+0/-0)
0 files modified
To merge this branch: bzr merge lp:~townsend/unity/fix-lp1309739
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
PS Jenkins bot (community) continuous-integration Approve
Brandon Schaefer (community) Approve
Review via email: mp+218487@code.launchpad.net

Commit message

Fix issue where scaling the edge illumination up and down with the size of the Launcher icons would cause the illumination border to be offset and smaller than the icon.

Description of the change

When setting the Launcher icons smaller and larger than the default, specifically less than 40 and greater than 58, the icon edge illumination would be offset and sometimes smaller than the icon.

It appears Gdk is unable to scale the icon glow .svg properly which causes the glow to be offset and smaller. This fix is use the old .png instead which just stretches or shrinks. I also kept around the old .svg but renamed it so Unity can't find it.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Nice, LGTM

review: Approve
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Well, while this is a way to fix the issue, the problem - according to the tests I did some weeks ago - is not caused by math errors, but to the fact that for some reasons the SVGs we use aren't properly resized (it seems to be caused by the glow used there), so I'm not sure what's the best approach here.

In fact, using the old .png again fixes the issue, but it doesn't give us the visual quality benefits when scaling up the UI (same as the fix proposed here)... So maybe a compromise would be to just get rid of the smallest .svg icon (resources/launcher_icon_glow_62.svg), and going back with the png. Without logic changes.

review: Needs Information
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'resources/launcher_icon_glow_62.png'
2Binary files resources/launcher_icon_glow_62.png 1970-01-01 00:00:00 +0000 and resources/launcher_icon_glow_62.png 2014-05-08 18:53:54 +0000 differ
3=== renamed file 'resources/launcher_icon_glow_62.svg' => 'resources/launcher_icon_glow_62.svg.save'