From 31d7a77929abb304f0bd53df35b837111cd038d7 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 11 Apr 2026 23:49:40 +1000 Subject: [PATCH] fix: popouts anims, should not be per-monitor Anims are not per-monitor --- modules/bar/popouts/Wrapper.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/bar/popouts/Wrapper.qml b/modules/bar/popouts/Wrapper.qml index 48fe05f8..9a18f911 100644 --- a/modules/bar/popouts/Wrapper.qml +++ b/modules/bar/popouts/Wrapper.qml @@ -32,13 +32,16 @@ Item { property string detachedMode property string queuedMode - property int animLength: Tokens.anim.durations.expressiveDefaultSpatial - property easingCurve animCurve: Tokens.anim.expressiveDefaultSpatial + // Dummy object so Tokens attached prop resolves to global config + // Anim configs are not per-monitor + readonly property QtObject dummy: QtObject {} + property int animLength: dummy.Tokens.anim.durations.expressiveDefaultSpatial + property easingCurve animCurve: dummy.Tokens.anim.expressiveDefaultSpatial function setAnims(detach: bool): void { const type = `expressive${detach ? "Slow" : "Default"}Spatial`; - animLength = Tokens.anim.durations[type]; - animCurve = Tokens.anim[type]; + animLength = dummy.Tokens.anim.durations[type]; + animCurve = dummy.Tokens.anim[type]; } function detach(mode: string): void {