summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-08-26 16:17:24 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-08-26 16:17:24 +0200
commit8153a67ef0cf6114af20202f84f3a6f7442af1c8 (patch)
tree3dde24bd9e3fd87b8c443868df8427e34fd5822b
parent5cd5134ebdf579b42e67174870806f6b6d9a48ba (diff)
SwitcherView: set progress on icon render args
Fixes LP: #1361679 (bzr r3860.1.1)
-rw-r--r--launcher/SwitcherView.cpp6
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;
}