From acfef5103e66cfebcc882d8dd4f36daa0bb447cd Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 10 Aug 2025 21:48:57 +1000 Subject: lock: better lock anim --- modules/lock/LockSurface.qml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'modules/lock/LockSurface.qml') diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml index 8dec866..ef07f39 100644 --- a/modules/lock/LockSurface.qml +++ b/modules/lock/LockSurface.qml @@ -123,6 +123,13 @@ WlSessionLockSurface { property: "opacity" to: 1 } + Anim { + target: content + property: "centerScale" + to: 1 + duration: Appearance.anim.durations.expressiveDefaultSpatial + easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial + } Anim { target: lockBg property: "radius" @@ -131,14 +138,14 @@ WlSessionLockSurface { Anim { target: lockBg property: "implicitWidth" - to: root.width * 0.8 + to: root.height * Config.lock.sizes.heightMult * Config.lock.sizes.ratio duration: Appearance.anim.durations.expressiveDefaultSpatial easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial } Anim { target: lockBg property: "implicitHeight" - to: root.height * 0.8 + to: root.height * Config.lock.sizes.heightMult duration: Appearance.anim.durations.expressiveDefaultSpatial easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial } @@ -174,6 +181,7 @@ WlSessionLockSurface { implicitWidth: size implicitHeight: size + clip: true color: Colours.tPalette.m3surface radius: size / 4 rotation: 180 -- cgit v1.2.3-freya