forked from Shinonome/dots-hyprland
fix 'rect' date z layer problem
This commit is contained in:
@@ -120,6 +120,7 @@ Item {
|
|||||||
id: secondHandLoader
|
id: secondHandLoader
|
||||||
active: Config.options.time.secondPrecision && Config.options.background.clock.cookie.secondHandStyle !== "none"
|
active: Config.options.time.secondPrecision && Config.options.background.clock.cookie.secondHandStyle !== "none"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
z: 2
|
||||||
sourceComponent: SecondHand {
|
sourceComponent: SecondHand {
|
||||||
id: secondHand
|
id: secondHand
|
||||||
handWidth: root.secondHandWidth
|
handWidth: root.secondHandWidth
|
||||||
|
|||||||
+1
-2
@@ -27,7 +27,6 @@ Item {
|
|||||||
// Rectangle date (only today's number) in right side of the clock
|
// Rectangle date (only today's number) in right side of the clock
|
||||||
Loader {
|
Loader {
|
||||||
id: rectLoader
|
id: rectLoader
|
||||||
z: 0
|
|
||||||
|
|
||||||
property real animIndex: root.style === "rect" ? 1.0 : 0.0
|
property real animIndex: root.style === "rect" ? 1.0 : 0.0
|
||||||
Behavior on animIndex {
|
Behavior on animIndex {
|
||||||
@@ -37,7 +36,7 @@ Item {
|
|||||||
active: animIndex > 0
|
active: animIndex > 0
|
||||||
|
|
||||||
sourceComponent: RectangleDate {
|
sourceComponent: RectangleDate {
|
||||||
color: root.colBackground
|
color: Appearance.colors.colSecondaryContainerHover
|
||||||
radius: Appearance.rounding.small
|
radius: Appearance.rounding.small
|
||||||
animIndex: rectLoader.animIndex
|
animIndex: rectLoader.animIndex
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-5
@@ -1,4 +1,3 @@
|
|||||||
pragma ComponentBehavior: Bound
|
|
||||||
|
|
||||||
import qs
|
import qs
|
||||||
import qs.services
|
import qs.services
|
||||||
@@ -7,17 +6,14 @@ import qs.modules.common.widgets
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
z: 1
|
|
||||||
|
|
||||||
readonly property string dialStyle: Config.options.background.clock.cookie.dialNumberStyle
|
readonly property string dialStyle: Config.options.background.clock.cookie.dialNumberStyle
|
||||||
|
|
||||||
property real animIndex: 0
|
property real animIndex: 0
|
||||||
opacity: animIndex
|
opacity: animIndex
|
||||||
|
|
||||||
width: 45
|
width: 45
|
||||||
height: 30
|
height: 30
|
||||||
|
|
||||||
x: dialStyle === "numbers" ? 155 : 175
|
x: dialStyle === "numbers" ? 155 : 150
|
||||||
y: dialStyle === "numbers" ? 155 : 100
|
y: dialStyle === "numbers" ? 155 : 100
|
||||||
|
|
||||||
Behavior on x {
|
Behavior on x {
|
||||||
|
|||||||
Reference in New Issue
Block a user