cookie clock: remove useless vars, adjust settings icons

This commit is contained in:
end-4
2025-10-11 18:14:57 +02:00
parent 1f5527164c
commit edc83764c4
5 changed files with 17 additions and 25 deletions
@@ -18,11 +18,6 @@ Item {
readonly property string clockStyle: Config.options.background.clock.style
property real implicitSize: 230
property real hourDotSize: 12
property real hourLineSize: 4
property real minuteLineSize: 2
property real hourNumberSize: 36
property real dateSquareSize: 64
property color colShadow: Appearance.colors.colShadow
property color colBackground: Appearance.colors.colSecondaryContainer
@@ -31,8 +26,6 @@ Item {
property color colHourHand: Appearance.colors.colPrimary
property color colMinuteHand: Appearance.colors.colSecondary
property color colSecondHand: Appearance.colors.colTertiary
property color colOnHourHand: Appearance.colors.colOnPrimary
property color colTimeIndicators: Appearance.colors.colSecondaryContainerHover
readonly property list<string> clockNumbers: DateTime.time.split(/[: ]/)
readonly property int clockHour: parseInt(clockNumbers[0]) % 12
@@ -157,7 +150,6 @@ Item {
sourceComponent: DateIndicator {
color: root.colBackgroundInfo
style: Config.options.background.clock.cookie.dateStyle
dateSquareSize: root.dateSquareSize
}
}
}
@@ -9,14 +9,14 @@ import QtQuick
Item {
id: root
property string style: "rotating"
property string style: "bubble"
property color color: Appearance.colors.colOnSecondaryContainer
property real dateSquareSize: 64
// Rotating date
FadeLoader {
anchors.fill: parent
shown: Config.options.background.clock.cookie.dateStyle === "rotating"
shown: Config.options.background.clock.cookie.dateStyle === "border"
sourceComponent: RotatingDate {
color: root.color
}
@@ -18,7 +18,7 @@ Item {
readonly property string dialStyle: Config.options.background.clock.cookie.dialNumberStyle
readonly property bool timeIndicators: Config.options.background.clock.cookie.timeIndicators
property real radius: style === "rotating" ? 90 : 0
property real radius: style === "border" ? 90 : 0
Behavior on radius {
animation: Appearance.animation.elementResize.numberAnimation.createObject(this)
}