Merge lp:~3v1n0/unity/switcher-icons-progress into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Christopher Townsend
Approved revision: no longer in the source branch.
Merged at revision: 3865
Proposed branch: lp:~3v1n0/unity/switcher-icons-progress
Merge into: lp:unity
Diff against target: 15 lines (+6/-0)
1 file modified
launcher/SwitcherView.cpp (+6/-0)
To merge this branch: bzr merge lp:~3v1n0/unity/switcher-icons-progress
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Christopher Townsend Approve
Review via email: mp+232231@code.launchpad.net

Commit message

SwitcherView: set progress on icon render args

Description of the change

This was always shown in switcher mockups, but never implemented.

To post a comment you must log in.
Revision history for this message
Christopher Townsend (townsend) wrote :

LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'launcher/SwitcherView.cpp'
--- launcher/SwitcherView.cpp 2014-07-15 16:28:45 +0000
+++ launcher/SwitcherView.cpp 2014-08-26 14:28:50 +0000
@@ -540,6 +540,12 @@
540 arg.backlight_intensity = 0.7f;540 arg.backlight_intensity = 0.7f;
541 }541 }
542542
543 if (icon->GetQuirk(AbstractLauncherIcon::Quirk::PROGRESS, monitor))
544 {
545 arg.progress_bias = 0.0;
546 arg.progress = CLAMP(icon->GetProgress(), 0.0f, 1.0f);
547 }
548
543 return arg;549 return arg;
544}550}
545551