wallpaper: fix stretch

This commit is contained in:
end-4
2025-07-14 22:55:15 +07:00
parent 631303bffe
commit 78c91500d6
@@ -12,8 +12,6 @@ import Quickshell
import Quickshell.Io import Quickshell.Io
import Quickshell.Wayland import Quickshell.Wayland
// TODO REMOVE BACKGROUNDWIDGETS
Scope { Scope {
id: root id: root
readonly property bool fixedClockPosition: Config.options.background.fixedClockPosition readonly property bool fixedClockPosition: Config.options.background.fixedClockPosition
@@ -80,7 +78,7 @@ Scope {
id: leastBusyRegionOutputCollector id: leastBusyRegionOutputCollector
onStreamFinished: { onStreamFinished: {
const output = leastBusyRegionOutputCollector.text const output = leastBusyRegionOutputCollector.text
console.log("[Background] Least busy region output:", output) // console.log("[Background] Least busy region output:", output)
if (output.length === 0) return; if (output.length === 0) return;
const parsedContent = JSON.parse(output) const parsedContent = JSON.parse(output)
bgRoot.clockX = parsedContent.center_x bgRoot.clockX = parsedContent.center_x
@@ -91,7 +89,7 @@ Scope {
} }
// Wallpaper // Wallpaper
AnimatedImage { Image {
z: 0 z: 0
anchors.fill: parent anchors.fill: parent
source: bgRoot.wallpaperPath source: bgRoot.wallpaperPath