background: fix blurry background when scaled

This commit is contained in:
end-4
2025-08-26 15:29:20 +07:00
parent cd8cb03797
commit 8f2863c02c
@@ -191,7 +191,6 @@ Variants {
x: -(bgRoot.movableXSpace) - (effectiveValueX - 0.5) * 2 * bgRoot.movableXSpace x: -(bgRoot.movableXSpace) - (effectiveValueX - 0.5) * 2 * bgRoot.movableXSpace
y: -(bgRoot.movableYSpace) - (effectiveValueY - 0.5) * 2 * bgRoot.movableYSpace y: -(bgRoot.movableYSpace) - (effectiveValueY - 0.5) * 2 * bgRoot.movableYSpace
source: bgRoot.wallpaperPath source: bgRoot.wallpaperPath
fillMode: Image.PreserveAspectCrop
Behavior on x { Behavior on x {
NumberAnimation { NumberAnimation {
duration: 600 duration: 600
@@ -205,9 +204,11 @@ Variants {
} }
} }
sourceSize { sourceSize {
width: bgRoot.screen.width * bgRoot.effectiveWallpaperScale width: bgRoot.screen.width * bgRoot.effectiveWallpaperScale * bgRoot.monitor.scale
height: bgRoot.screen.height * bgRoot.effectiveWallpaperScale height: bgRoot.screen.height * bgRoot.effectiveWallpaperScale * bgRoot.monitor.scale
} }
width: bgRoot.screen.width * bgRoot.effectiveWallpaperScale
height: bgRoot.screen.height * bgRoot.effectiveWallpaperScale
} }
// The clock // The clock