fix 'rect' date z layer problem

This commit is contained in:
darksignal7
2025-10-08 20:30:30 +03:00
parent 4fb7f7c1e7
commit 19230db8b7
3 changed files with 3 additions and 7 deletions
@@ -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
@@ -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
}
@@ -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 {