forked from Shinonome/dots-hyprland
fix undefined error
This commit is contained in:
@@ -117,8 +117,8 @@ Variants {
|
|||||||
function updateClockPosition() {
|
function updateClockPosition() {
|
||||||
// Somehow all this manual setting is needed to make the proc correctly use the new values
|
// Somehow all this manual setting is needed to make the proc correctly use the new values
|
||||||
leastBusyRegionProc.path = bgRoot.wallpaperPath
|
leastBusyRegionProc.path = bgRoot.wallpaperPath
|
||||||
leastBusyRegionProc.contentWidth = clock.implicitWidth + root.clockSizePadding * 2
|
leastBusyRegionProc.contentWidth = clockLoader.item.implicitWidth + root.clockSizePadding * 2
|
||||||
leastBusyRegionProc.contentHeight = clock.implicitHeight + root.clockSizePadding * 2
|
leastBusyRegionProc.contentHeight = clockLoader.item.implicitHeight + root.clockSizePadding * 2
|
||||||
leastBusyRegionProc.horizontalPadding = bgRoot.movableXSpace + root.screenSizePadding * 2
|
leastBusyRegionProc.horizontalPadding = bgRoot.movableXSpace + root.screenSizePadding * 2
|
||||||
leastBusyRegionProc.verticalPadding = bgRoot.movableYSpace + root.screenSizePadding * 2
|
leastBusyRegionProc.verticalPadding = bgRoot.movableYSpace + root.screenSizePadding * 2
|
||||||
leastBusyRegionProc.running = false;
|
leastBusyRegionProc.running = false;
|
||||||
@@ -216,6 +216,7 @@ Variants {
|
|||||||
|
|
||||||
// The clock
|
// The clock
|
||||||
Loader {
|
Loader {
|
||||||
|
id: clockLoader
|
||||||
active: Config.options.background.showClock
|
active: Config.options.background.showClock
|
||||||
anchors {
|
anchors {
|
||||||
left: wallpaper.left
|
left: wallpaper.left
|
||||||
|
|||||||
Reference in New Issue
Block a user