background: fix(??) bg clock paralax (??)

This commit is contained in:
end-4
2025-10-16 11:52:14 +02:00
parent a5170c51b3
commit 449df7f161
3 changed files with 8 additions and 4 deletions
@@ -271,12 +271,12 @@ Variants {
leftMargin: {
const clockXOnWallpaper = bgRoot.movableXSpace + ((root.fixedClockPosition ? root.fixedClockX : bgRoot.clockX * bgRoot.effectiveWallpaperScale) - implicitWidth / 2)
const extraMove = (wallpaper.effectiveValueX * 2 * bgRoot.movableXSpace) * (root.clockParallaxFactor - 1);
return clockXOnWallpaper + extraMove;
return clockXOnWallpaper - extraMove;
}
topMargin: {
const clockYOnWallpaper = bgRoot.movableYSpace + ((root.fixedClockPosition ? root.fixedClockY : bgRoot.clockY * bgRoot.effectiveWallpaperScale) - implicitHeight / 2)
const extraMove = (wallpaper.effectiveValueY * 2 * bgRoot.movableYSpace) * (root.clockParallaxFactor - 1);
return clockYOnWallpaper + extraMove;
return clockYOnWallpaper - extraMove;
}
Behavior on leftMargin {
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
@@ -175,7 +175,7 @@ Singleton {
property bool enableWorkspace: true
property real workspaceZoom: 1.07 // Relative to your screen, not wallpaper size
property bool enableSidebar: true
property real clockFactor: 1.01
property real clockFactor: 1.13
}
}