forked from Shinonome/dots-hyprland
cookie clock: cleaner date indicator, adjust colors
This commit is contained in:
+2
-21
@@ -8,34 +8,15 @@ import QtQuick
|
||||
Rectangle {
|
||||
id: rect
|
||||
readonly property string dialStyle: Config.options.background.clock.cookie.dialNumberStyle
|
||||
property real animIndex: 0
|
||||
opacity: animIndex
|
||||
|
||||
width: 45 * animIndex
|
||||
height: 30 * animIndex
|
||||
|
||||
x: root.dialStyle === "numbers" ? -40 : -10
|
||||
y: root.dialStyle === "numbers" ? 55 : 0
|
||||
|
||||
Behavior on x {
|
||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||
}
|
||||
Behavior on y {
|
||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||
}
|
||||
|
||||
StyledText {
|
||||
opacity: root.style === "rect" ? 1.0 : 0
|
||||
Behavior on opacity {
|
||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||
}
|
||||
anchors.centerIn: parent
|
||||
color: Appearance.colors.colSecondaryHover
|
||||
text: DateTime.date.substring(5, 7)
|
||||
text: Qt.locale().toString(DateTime.clock.date, "dd")
|
||||
font {
|
||||
family: Appearance.font.family.expressive
|
||||
pixelSize: 20
|
||||
weight: 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user