background: clock size: safer access

This commit is contained in:
end-4
2025-08-31 08:04:23 +02:00
parent 8199fdd2bf
commit e26045ec73
@@ -117,8 +117,8 @@ Variants {
function updateClockPosition() {
// Somehow all this manual setting is needed to make the proc correctly use the new values
leastBusyRegionProc.path = bgRoot.wallpaperPath
leastBusyRegionProc.contentWidth = clockLoader.item.implicitWidth + root.clockSizePadding * 2
leastBusyRegionProc.contentHeight = clockLoader.item.implicitHeight + root.clockSizePadding * 2
leastBusyRegionProc.contentWidth = clockLoader.implicitWidth + root.clockSizePadding * 2
leastBusyRegionProc.contentHeight = clockLoader.implicitHeight + root.clockSizePadding * 2
leastBusyRegionProc.horizontalPadding = bgRoot.movableXSpace + root.screenSizePadding * 2
leastBusyRegionProc.verticalPadding = bgRoot.movableYSpace + root.screenSizePadding * 2
leastBusyRegionProc.running = false;