From 19230db8b7f732246813c17ce78e0d6cad50ad97 Mon Sep 17 00:00:00 2001 From: darksignal7 Date: Wed, 8 Oct 2025 20:30:30 +0300 Subject: [PATCH] fix 'rect' date z layer problem --- .../ii/modules/background/cookieClock/CookieClock.qml | 1 + .../background/cookieClock/dateIndicators/DateIndicator.qml | 3 +-- .../background/cookieClock/dateIndicators/RectangleDate.qml | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.config/quickshell/ii/modules/background/cookieClock/CookieClock.qml b/.config/quickshell/ii/modules/background/cookieClock/CookieClock.qml index 9dc74d790..d5472369e 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/CookieClock.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/CookieClock.qml @@ -120,6 +120,7 @@ Item { id: secondHandLoader active: Config.options.time.secondPrecision && Config.options.background.clock.cookie.secondHandStyle !== "none" anchors.fill: parent + z: 2 sourceComponent: SecondHand { id: secondHand handWidth: root.secondHandWidth diff --git a/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/DateIndicator.qml b/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/DateIndicator.qml index 943995ffc..850bc34f8 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/DateIndicator.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/DateIndicator.qml @@ -27,7 +27,6 @@ Item { // Rectangle date (only today's number) in right side of the clock Loader { id: rectLoader - z: 0 property real animIndex: root.style === "rect" ? 1.0 : 0.0 Behavior on animIndex { @@ -37,7 +36,7 @@ Item { active: animIndex > 0 sourceComponent: RectangleDate { - color: root.colBackground + color: Appearance.colors.colSecondaryContainerHover radius: Appearance.rounding.small animIndex: rectLoader.animIndex } diff --git a/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/RectangleDate.qml b/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/RectangleDate.qml index 67d5709e3..c24222206 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/RectangleDate.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/dateIndicators/RectangleDate.qml @@ -1,4 +1,3 @@ -pragma ComponentBehavior: Bound import qs import qs.services @@ -7,17 +6,14 @@ import qs.modules.common.widgets import QtQuick Rectangle { - z: 1 - readonly property string dialStyle: Config.options.background.clock.cookie.dialNumberStyle - property real animIndex: 0 opacity: animIndex width: 45 height: 30 - x: dialStyle === "numbers" ? 155 : 175 + x: dialStyle === "numbers" ? 155 : 150 y: dialStyle === "numbers" ? 155 : 100 Behavior on x {