Merge lp:~hikiko/unity/unity.launcher-icon-anim into lp:unity

Proposed by Eleni Maria Stea on 2016-07-11
Status: Needs review
Proposed branch: lp:~hikiko/unity/unity.launcher-icon-anim
Merge into: lp:unity
Diff against target: 43 lines (+16/-14)
1 file modified
launcher/Launcher.cpp (+16/-14)
To merge this branch: bzr merge lp:~hikiko/unity/unity.launcher-icon-anim
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Pending
Unity Team 2016-07-11 Pending
Review via email: mp+299664@code.launchpad.net

Commit message

reduced duration times in launcher icon quirks

Description of the change

reduced duration times in launcher icon quirks

To post a comment you must log in.

Unmerged revisions

4147. By Eleni Maria Stea on 2016-07-11

reduced animation durations and removed some launcher icons animations

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'launcher/Launcher.cpp'
--- launcher/Launcher.cpp 2016-07-04 15:09:42 +0000
+++ launcher/Launcher.cpp 2016-07-11 09:22:17 +0000
@@ -1739,23 +1739,25 @@
17391739
1740void Launcher::SetupIconAnimations(AbstractLauncherIcon::Ptr const& icon)1740void Launcher::SetupIconAnimations(AbstractLauncherIcon::Ptr const& icon)
1741{1741{
1742 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::VISIBLE, ANIM_DURATION_SHORT, monitor());1742 bool lowgfx = unity::Settings::Instance().low_gfx;
1743 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::RUNNING, ANIM_DURATION_SHORT, monitor());1743
1744 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::ACTIVE, ANIM_DURATION_SHORT, monitor());1744 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::VISIBLE, lowgfx ? 0 : ANIM_DURATION_SHORT, monitor());
1745 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::STARTING, (ANIM_DURATION_LONG * MAX_STARTING_BLINKS * STARTING_BLINK_LAMBDA * 2), monitor());1745 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::RUNNING, lowgfx ? 0 : ANIM_DURATION_SHORT, monitor());
1746 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::PULSE_ONCE, (ANIM_DURATION_LONG * PULSE_BLINK_LAMBDA * 2), monitor());1746 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::ACTIVE, lowgfx ? 0 : ANIM_DURATION_SHORT, monitor());
1747 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::PRESENTED, ANIM_DURATION, monitor());1747 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::STARTING, ((lowgfx ? 1 : ANIM_DURATION_LONG) * MAX_STARTING_BLINKS * STARTING_BLINK_LAMBDA * 2), monitor());
1748 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::UNFOLDED, ANIM_DURATION, monitor());1748 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::PULSE_ONCE, ((lowgfx ? 1 : ANIM_DURATION_LONG) * PULSE_BLINK_LAMBDA * 2), monitor());
1749 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::SHIMMER, ANIM_DURATION_LONG, monitor());1749 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::PRESENTED, (lowgfx ? 0 : ANIM_DURATION), monitor());
1750 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::CENTER_SAVED, ANIM_DURATION, monitor());1750 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::UNFOLDED, (lowgfx ? 0 : ANIM_DURATION), monitor());
1751 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::PROGRESS, ANIM_DURATION, monitor());1751 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::SHIMMER, (lowgfx ? 1 : ANIM_DURATION_LONG), monitor());
1752 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::DESAT, ANIM_DURATION_SHORT_SHORT, monitor());1752 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::CENTER_SAVED, (lowgfx ? 0 : ANIM_DURATION), monitor());
1753 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::GLOW, ANIM_DURATION_SHORT, monitor());1753 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::PROGRESS, (lowgfx ? 0 : ANIM_DURATION), monitor());
1754 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::DESAT, (lowgfx ? 0 : ANIM_DURATION_SHORT_SHORT), monitor());
1755 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::GLOW, (lowgfx ? 0 : ANIM_DURATION_SHORT), monitor());
17541756
1755 if (options()->urgent_animation() == URGENT_ANIMATION_WIGGLE)1757 if (options()->urgent_animation() == URGENT_ANIMATION_WIGGLE)
1756 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::URGENT, (ANIM_DURATION_SHORT * WIGGLE_CYCLES), monitor());1758 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::URGENT, ((lowgfx ? 1 : ANIM_DURATION_SHORT) * WIGGLE_CYCLES), monitor());
1757 else1759 else
1758 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::URGENT, (ANIM_DURATION_LONG * URGENT_BLINKS * 2), monitor());1760 icon->SetQuirkDuration(AbstractLauncherIcon::Quirk::URGENT, ((lowgfx ? 1 : ANIM_DURATION_LONG) * URGENT_BLINKS * 2), monitor());
1759}1761}
17601762
1761void Launcher::SetModel(LauncherModel::Ptr model)1763void Launcher::SetModel(LauncherModel::Ptr model)