From 8b78d058050fb4b944560bb57e092b9d6b03759e Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 20 Sep 2025 09:49:34 +0200 Subject: [PATCH] background: fix clock position --- .config/quickshell/ii/modules/background/Background.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 64e5936df..3df6c445c 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -69,7 +69,7 @@ Variants { property bool shouldBlur: (GlobalStates.screenLocked && Config.options.background.lockBlur.enable) property color dominantColor: Appearance.colors.colPrimary property bool dominantColorIsDark: dominantColor.hslLightness < 0.5 - property color colText: (GlobalStates.screenLocked && shouldBlur) ? Appearance.colors.colSecondary : CF.ColorUtils.colorWithLightness(Appearance.colors.colPrimary, (dominantColorIsDark ? 0.8 : 0.12)) + property color colText: (GlobalStates.screenLocked && shouldBlur) ? Appearance.colors.colOnLayer0 : CF.ColorUtils.colorWithLightness(Appearance.colors.colPrimary, (dominantColorIsDark ? 0.8 : 0.12)) Behavior on colText { animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this) } @@ -262,6 +262,7 @@ Variants { left: wallpaper.left top: wallpaper.top horizontalCenter: undefined + verticalCenter: undefined leftMargin: bgRoot.movableXSpace + ((root.fixedClockPosition ? root.fixedClockX : bgRoot.clockX * bgRoot.effectiveWallpaperScale) - implicitWidth / 2) topMargin: { if (bgRoot.shouldBlur) @@ -282,8 +283,9 @@ Variants { target: clockLoader anchors { left: undefined - horizontalCenter: wallpaper.horizontalCenter right: undefined + top: parent.top + horizontalCenter: parent.horizontalCenter } } }