https://bugs.kde.org/show_bug.cgi?id=522276

Thomas Duckworth <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kwin/-/commit/8976d1a2cd
                   |                            |3c4c01154845cb6c08c8fd0692b
                   |                            |fd7
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Thomas Duckworth <[email protected]> ---
Git commit 8976d1a2cd3c4c01154845cb6c08c8fd0692bfd7 by Thomas Duckworth.
Committed on 01/07/2026 at 03:57.
Pushed by tduck into branch 'master'.

plugins/slidingnotifications: Drive animation with spring motion

The slide and reposition animations interpolated through a TimeLine along a
fixed path using Bezier curves. This created an artificial looking animation
without convincing easing and acceleration/deceleration.

Drive the position with SpringMotion instead, taken from previously-existing
code. This gives the motion a nice and natural-looking acceleration and
deceleration with easing in and out, with an exit animation anchored to a
position off-screen.

Also drive opacity with SpringMotion that's stiffer than the position
SpringMotion. This allows it to fade in and out slightly faster than the spring
in a natural way, avoiding looking like the notification is stalling for a
moment before fading out.

M  +93   -54   src/plugins/slidingnotifications/slidingnotifications.cpp
M  +18   -7    src/plugins/slidingnotifications/slidingnotifications.h

https://invent.kde.org/plasma/kwin/-/commit/8976d1a2cd3c4c01154845cb6c08c8fd0692bfd7

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to