Merge lp:~docky-core/plank/item-foreground-buffer into lp:plank
Proposed by
Rico Tzschichholz
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Robert Dyer | ||||
Approved revision: | 812 | ||||
Merged at revision: | 816 | ||||
Proposed branch: | lp:~docky-core/plank/item-foreground-buffer | ||||
Merge into: | lp:plank | ||||
Prerequisite: | lp:~docky-core/plank/item-shadows | ||||
Diff against target: |
363 lines (+151/-57) 3 files modified
lib/DockRenderer.vala (+62/-27) lib/Drawing/DockSurface.vala (+16/-0) lib/Items/DockItem.vala (+73/-30) |
||||
To merge this branch: | bzr merge lp:~docky-core/plank/item-foreground-buffer | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Dyer (community) | Approve | ||
Review via email: mp+160124@code.launchpad.net |
Description of the change
* Refactor the way item-layers are drawn.
* Draw item-shadows behind the dock-background. (The theme should disable the shadows if TopPadding isn't < 0)
* Puts the badge/progress-bar onto a foreground_surface owned by the dock-item. This avoids the redraw from scratch of the badge/progress-bar on every dock-redraw.
To post a comment you must log in.
Lines 9-13 - this check shouldnt be here. Always pass in the func and instead do this check inside the item itself (let the item decide if it needs to draw overlay, based on its own count/progress)