aboutsummaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-14 12:18:48 +0200
committerDanilo M. <danix@danix.xyz>2026-09-14 12:18:48 +0200
commit5efc552ae852aed437ba0ad62a210554e4f79375 (patch)
treed3b5cc5fd5f86011e3adea1cc64214dc0ae5ddf2 /desktop
parent14a8cd8256620c151693cf2098a91403aa76c3cb (diff)
downloadquickshell-5efc552ae852aed437ba0ad62a210554e4f79375.tar.gz
quickshell-5efc552ae852aed437ba0ad62a210554e4f79375.zip
fix(desktop): slide the page with a transform, not anchored x
The page Loader is anchored to its parent, so the x binding on it was overridden and the slide never rendered. Drive the motion with a Translate transform instead, which the anchors do not touch. Opacity and the back-arrow wiring are unchanged.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/Drawer.qml10
1 files changed, 7 insertions, 3 deletions
diff --git a/desktop/Drawer.qml b/desktop/Drawer.qml
index f0e0a84..368f249 100644
--- a/desktop/Drawer.qml
+++ b/desktop/Drawer.qml
@@ -175,10 +175,14 @@ Scope {
// The page enters from the right: the one piece of motion
// in the design, and what makes the drawer read as one
- // surface rather than a window swapping contents.
+ // surface rather than a window swapping contents. It is a
+ // transform, not `x`: the anchors above pin x, and an
+ // anchored x is silently ignored.
opacity: active ? 1 : 0
- x: active ? 16 : 60
- Behavior on x { NumberAnimation { duration: 160; easing.type: Easing.OutCubic } }
+ transform: Translate {
+ x: pageLoader.active ? 0 : 44
+ Behavior on x { NumberAnimation { duration: 160; easing.type: Easing.OutCubic } }
+ }
Behavior on opacity { NumberAnimation { duration: 160 } }
}
}