forked from Shinonome/dots-hyprland
fix 'rect' date z layer problem
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-2
@@ -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
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user