[plasma/kwin] src/plugins/logout/package/contents/code: plugins/logout: Speed up intro/outro transition

Nate Graham <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a6101e59c7eb9b0a3ace71ac27238831197251d1 by Nate Graham.
Committed on 13/08/2026 at 19:50.
Pushed by ngraham into branch 'master'.

plugins/logout: Speed up intro/outro transition

800ms is very long; double the length of a
Kirigami.Units.veryLongDuration. This unit is intended to be used
standalone, i.e. you're not supposed to multiply it by 2 or use a
hardcoded version of it that's multiplied by 2.

Reduce the intro duration to Kirigami.Units.veryLongDuration * 1, and
the outro duration to Kirigami.Units.longDuration * 1.

The result is faster and feels a lot more responsive to me.

M  +2    -2    src/plugins/logout/package/contents/code/main.js

https://invent.kde.org/plasma/kwin/-/commit/a6101e59c7eb9b0a3ace71ac27238831197251d1

diff --git a/src/plugins/logout/package/contents/code/main.js b/src/plugins/logout/package/contents/code/main.js
index 9dc5b37034b..946916553f9 100644
--- a/src/plugins/logout/package/contents/code/main.js
+++ b/src/plugins/logout/package/contents/code/main.js
@@ -29,7 +29,7 @@ var logoutEffect = {
         }
         window.inAnimation = animate({
             window: window,
-            duration: animationTime(800),
+            duration: animationTime(400),
             type: Effect.Opacity,
             from: 0.0,
             to: 1.0
@@ -46,7 +46,7 @@ var logoutEffect = {
         }
         window.outAnimation = animate({
             window: window,
-            duration: animationTime(400),
+            duration: animationTime(200),
             type: Effect.Opacity,
             from: 1.0,
             to: 0.0
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.