adjust clock appearance

This commit is contained in:
end-4
2025-10-30 12:38:30 +01:00
parent 403344e120
commit 1b996e37a7
4 changed files with 6 additions and 6 deletions
@@ -50,9 +50,9 @@ Item {
print("[Cookie clock] Setting clock preset for category: " + category)
// "abstract", "anime", "city", "minimalist", "landscape", "plants", "person", "space"
if (category == "abstract") {
applyStyle(10, "dots", "fill", "medium", "dot", "bubble")
applyStyle(9, "none", "fill", "medium", "dot", "bubble")
} else if (category == "anime") {
applyStyle(12, "dots", "fill", "bold", "dot", "bubble")
applyStyle(7, "none", "fill", "bold", "dot", "bubble")
} else if (category == "city" || category == "space") {
applyStyle(23, "full", "hollow", "thin", "classic", "bubble")
} else if (category == "minimalist") {
@@ -9,7 +9,7 @@ Item {
required property int clockHour
required property int clockMinute
property real handLength: 72
property real handWidth: 18
property real handWidth: 20
property string style: "fill"
property color color: Appearance.colors.colPrimary
@@ -10,7 +10,7 @@ Item {
required property int clockMinute
property string style: "medium"
property real handLength: 95
property real handWidth: style === "bold" ? 18 : style === "medium" ? 12 : 5
property real handWidth: style === "bold" ? 20 : style === "medium" ? 12 : 5
property color color: Appearance.colors.colSecondary
rotation: -90 + (360 / 60) * root.clockMinute
@@ -10,7 +10,7 @@ Item {
required property int clockSecond
property real handWidth: 2
property real handLength: 100
property real handLength: 95
property real dotSize: 20
property string style: "hide"
property color color: Appearance.colors.colSecondary
@@ -29,7 +29,7 @@ Item {
anchors {
left: parent.left
verticalCenter: parent.verticalCenter
leftMargin: 10
leftMargin: 10 + (root.style === "dot" ? root.dotSize : 0)
}
implicitWidth: root.style === "dot" ? root.dotSize : root.handLength
implicitHeight: root.style === "dot" ? root.dotSize : root.handWidth