From 7f95505dec2ddc10ce00c5dc01e39fc457d8ad34 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 9 Oct 2026 11:21:23 +0200 Subject: [PATCH] Slow down the reveal effect a little on background changes --- shell/plugins/background/Background.qml | 2 +- test/shell.d/background-test.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shell/plugins/background/Background.qml b/shell/plugins/background/Background.qml index 6f692677..d5e0741d 100644 --- a/shell/plugins/background/Background.qml +++ b/shell/plugins/background/Background.qml @@ -274,7 +274,7 @@ Item { property: "revealProgress" from: 0 to: 1 - duration: Style.duration(420) + duration: Style.duration(840) easing.type: Easing.OutCubic onFinished: { if (root.incomingBackground) { diff --git a/test/shell.d/background-test.sh b/test/shell.d/background-test.sh index 2a0d832d..fa9a1442 100644 --- a/test/shell.d/background-test.sh +++ b/test/shell.d/background-test.sh @@ -74,4 +74,9 @@ assert( /function prepareBackground[\s\S]*?requestNativeSize\(path\)/.test(backgroundQml), 'background never probes videos and probes a prepared frame ahead of its transition' ) + +assert( + /id: revealAnimation[\s\S]*?duration: Style\.duration\(840\)/.test(backgroundQml), + 'background reveal takes 840ms' +) JS