Merge lp:~3v1n0/unity/quicklist-item-glow-selection into lp:unity
Status: | Rejected |
---|---|
Rejected by: | Marco Trevisan (Treviño) |
Proposed branch: | lp:~3v1n0/unity/quicklist-item-glow-selection |
Merge into: | lp:unity |
Prerequisite: | lp:~3v1n0/unity/fixed-bad-quicklist-items-drawing |
Diff against target: |
571 lines (+106/-146) 7 files modified
plugins/unityshell/src/QuicklistMenuItem.cpp (+54/-10) plugins/unityshell/src/QuicklistMenuItem.h (+4/-5) plugins/unityshell/src/QuicklistMenuItemCheckmark.cpp (+10/-37) plugins/unityshell/src/QuicklistMenuItemLabel.cpp (+5/-25) plugins/unityshell/src/QuicklistMenuItemRadio.cpp (+9/-42) plugins/unityshell/src/QuicklistMenuItemSeparator.cpp (+8/-8) plugins/unityshell/src/QuicklistView.cpp (+16/-19) |
To merge this branch: | bzr merge lp:~3v1n0/unity/quicklist-item-glow-selection |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Unity Team | Pending | ||
Review via email: mp+87410@code.launchpad.net |
Description of the change
Fixed bug #911443 applying a glow to the quicklist item selection.
The glow is applied using some heuristic, since from dozen of tests I've done this seems the best result so far.
Also, the disabled items are now using a different opacity, following the design mokup.
Here you are some examples to show of how this branch works:
- http://
- http://
Unmerged revisions
- 1803. By Marco Trevisan (Treviño)
-
QuicklistMenuItem*: add a shared function to Draw the Prelight that applies a blurred glow
All the kinds of QuicklistMenuitems now uses the shared DrawText and DrawPrelight functions
to draw the content, these functions are also aware of the padding that the quicklist item
should use.The DrawPrelight function uses some heuristic to get the best result, instead of just drawing
a blurred rectangle under the opaque one.Plus, now the disabled quicklist are using a semi-transparent white color, computed comaparing
the results with the design mokups. - 1802. By Marco Trevisan (Treviño)
-
QuicklistView: don't define the padding of each MenuItemView, leave the children to set it
The quicklist view shouldn't define the padding of each child, but each one should take all the
space and then draw there what it wants. This allows to use all the quicklist space on the menu items
and to draw a glow without reducing the item area.
Looks very nice.
Will we see that merged soon ?