From 2db6a57c0ba8eaadc9f6ae3203c68d7533f220fc Mon Sep 17 00:00:00 2001 From: zach Date: Mon, 6 Jul 2026 19:40:57 +0200 Subject: [PATCH] fix: shift background in accordance with content --- Modules/Lock/LockSurface.qml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Modules/Lock/LockSurface.qml b/Modules/Lock/LockSurface.qml index ad16bc4..aecb5be 100644 --- a/Modules/Lock/LockSurface.qml +++ b/Modules/Lock/LockSurface.qml @@ -149,9 +149,34 @@ WlSessionLockSurface { Image { id: background + anchors.bottomMargin: -8 - lockContent.positions[lockContent.positionIndex].y anchors.fill: parent + anchors.leftMargin: -8 + lockContent.positions[lockContent.positionIndex].x + anchors.rightMargin: -8 - lockContent.positions[lockContent.positionIndex].x + anchors.topMargin: -8 + lockContent.positions[lockContent.positionIndex].y fillMode: Image.PreserveAspectCrop source: WallpaperPath.lockscreenBg + + Behavior on anchors.bottomMargin { + Anim { + duration: 5000 + } + } + Behavior on anchors.leftMargin { + Anim { + duration: 5000 + } + } + Behavior on anchors.rightMargin { + Anim { + duration: 5000 + } + } + Behavior on anchors.topMargin { + Anim { + duration: 5000 + } + } } Item {