diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-08-26 16:17:24 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-08-26 16:17:24 +0200 |
| commit | 8153a67ef0cf6114af20202f84f3a6f7442af1c8 (patch) | |
| tree | 3dde24bd9e3fd87b8c443868df8427e34fd5822b | |
| parent | 5cd5134ebdf579b42e67174870806f6b6d9a48ba (diff) | |
SwitcherView: set progress on icon render args
Fixes LP: #1361679 (bzr r3860.1.1)
| -rw-r--r-- | launcher/SwitcherView.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/SwitcherView.cpp b/launcher/SwitcherView.cpp index 321396ef7..0fa402ccf 100644 --- a/launcher/SwitcherView.cpp +++ b/launcher/SwitcherView.cpp @@ -540,6 +540,12 @@ RenderArg SwitcherView::CreateBaseArgForIcon(AbstractLauncherIcon::Ptr const& ic arg.backlight_intensity = 0.7f; } + if (icon->GetQuirk(AbstractLauncherIcon::Quirk::PROGRESS, monitor)) + { + arg.progress_bias = 0.0; + arg.progress = CLAMP(icon->GetProgress(), 0.0f, 1.0f); + } + return arg; } |
