[effects/overview] Speed up animation

The current duration is 300ms, which is inappropriate for two reasons:

1. It's too slow
2. It doesn't match one of the standard durations. The effect should
   ideally use those durations directly, but if this is not possible
   for technical reasons, it should use the effective value of one of
   those durations. Units.longDuration is 200ms which is the most
   appropriate one to use here.

Therefore, change the animation duration from 300ms to 200ms to match
the standard Units.longDuration duration.

BUG: 441308
FIXED-IN: 5.23
This commit is contained in:
Nate Graham 2021-08-26 09:10:25 -06:00
parent 0931e4f8cc
commit 205fb923cb
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ void OverviewEffect::reconfigure(ReconfigureFlags)
{
OverviewConfig::self()->read();
setLayout(ExpoLayout::LayoutMode(OverviewConfig::layoutMode()));
setAnimationDuration(animationTime(300));
setAnimationDuration(animationTime(200));
for (const ElectricBorder &border : qAsConst(m_borderActivate)) {
effects->unreserveElectricBorder(border, this);

View file

@ -87,7 +87,7 @@ private:
QList<ElectricBorder> m_borderActivate;
QList<ElectricBorder> m_touchBorderActivate;
bool m_activated = false;
int m_animationDuration = 300;
int m_animationDuration = 200;
ExpoLayout::LayoutMode m_layout = ExpoLayout::LayoutNatural;
};