forked from Shinonome/dots-hyprland
adjust clock appearance
This commit is contained in:
@@ -50,9 +50,9 @@ Item {
|
|||||||
print("[Cookie clock] Setting clock preset for category: " + category)
|
print("[Cookie clock] Setting clock preset for category: " + category)
|
||||||
// "abstract", "anime", "city", "minimalist", "landscape", "plants", "person", "space"
|
// "abstract", "anime", "city", "minimalist", "landscape", "plants", "person", "space"
|
||||||
if (category == "abstract") {
|
if (category == "abstract") {
|
||||||
applyStyle(10, "dots", "fill", "medium", "dot", "bubble")
|
applyStyle(9, "none", "fill", "medium", "dot", "bubble")
|
||||||
} else if (category == "anime") {
|
} else if (category == "anime") {
|
||||||
applyStyle(12, "dots", "fill", "bold", "dot", "bubble")
|
applyStyle(7, "none", "fill", "bold", "dot", "bubble")
|
||||||
} else if (category == "city" || category == "space") {
|
} else if (category == "city" || category == "space") {
|
||||||
applyStyle(23, "full", "hollow", "thin", "classic", "bubble")
|
applyStyle(23, "full", "hollow", "thin", "classic", "bubble")
|
||||||
} else if (category == "minimalist") {
|
} else if (category == "minimalist") {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Item {
|
|||||||
required property int clockHour
|
required property int clockHour
|
||||||
required property int clockMinute
|
required property int clockMinute
|
||||||
property real handLength: 72
|
property real handLength: 72
|
||||||
property real handWidth: 18
|
property real handWidth: 20
|
||||||
property string style: "fill"
|
property string style: "fill"
|
||||||
property color color: Appearance.colors.colPrimary
|
property color color: Appearance.colors.colPrimary
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Item {
|
|||||||
required property int clockMinute
|
required property int clockMinute
|
||||||
property string style: "medium"
|
property string style: "medium"
|
||||||
property real handLength: 95
|
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
|
property color color: Appearance.colors.colSecondary
|
||||||
|
|
||||||
rotation: -90 + (360 / 60) * root.clockMinute
|
rotation: -90 + (360 / 60) * root.clockMinute
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Item {
|
|||||||
|
|
||||||
required property int clockSecond
|
required property int clockSecond
|
||||||
property real handWidth: 2
|
property real handWidth: 2
|
||||||
property real handLength: 100
|
property real handLength: 95
|
||||||
property real dotSize: 20
|
property real dotSize: 20
|
||||||
property string style: "hide"
|
property string style: "hide"
|
||||||
property color color: Appearance.colors.colSecondary
|
property color color: Appearance.colors.colSecondary
|
||||||
@@ -29,7 +29,7 @@ Item {
|
|||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
leftMargin: 10
|
leftMargin: 10 + (root.style === "dot" ? root.dotSize : 0)
|
||||||
}
|
}
|
||||||
implicitWidth: root.style === "dot" ? root.dotSize : root.handLength
|
implicitWidth: root.style === "dot" ? root.dotSize : root.handLength
|
||||||
implicitHeight: root.style === "dot" ? root.dotSize : root.handWidth
|
implicitHeight: root.style === "dot" ? root.dotSize : root.handWidth
|
||||||
|
|||||||
Reference in New Issue
Block a user