D13720: [effects] Rewrite the Dim Inactive effect

Vlad Zagorodniy <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
zzag added inline comments.

INLINE COMMENTS

> zzag wrote in diminactive.cpp:240
> Good question. The In and the Out animations are different so that's fine to reset them.
> 
> > really really quickly
> 
> It will be noticeable only when animation time factor is 4x+.
> 
> On the other hand, TimeLine tries its best to smooth "transition" from old duration to new duration. The problem is when we're truncating duration(e.g. 250ms -> 160ms). But that's easy to fix:
> 
>   timeLine.setDuration(smallerDuration);
>   if (timeLine.done()) {
>       timeLine.reset();
>   }
> 
> I'll change it.

I'll also have to change easing curves. (to InOut curve)

REPOSITORY
  R108 KWin

BRANCH
  rewrite-diminactive-effect

REVISION DETAIL
  https://phabricator.kde.org/D13720

To: zzag, #kwin, #plasma, #vdg, davidedmundson
Cc: davidedmundson, abetts, ngraham, kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.