diff --git a/.config/quickshell/ii/modules/background/CookieClock.qml b/.config/quickshell/ii/modules/background/CookieClock.qml index 525503613..e11c32d85 100644 --- a/.config/quickshell/ii/modules/background/CookieClock.qml +++ b/.config/quickshell/ii/modules/background/CookieClock.qml @@ -29,6 +29,8 @@ Item { property real secondDotSize: 20 property real secondsHandWidth: 2 property real secondsHandLength: 100 + property real hourLineSize: 5 + property real minuteLineSize: 2 property real hourNumberSize: 36 @@ -413,6 +415,63 @@ Item { } } + // Full dial style hour lines + Repeater { + model: 12 + Item { + opacity: Config.options.background.clock.cookie.dialNumberStyle === "full" ? 1.0 : 0 + Behavior on opacity { + animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) + } + required property int index + rotation: 360 / 12 * index + anchors.fill: parent + Rectangle { + anchors { + left: parent.left + verticalCenter: parent.verticalCenter + leftMargin: Config.options.background.clock.cookie.dialNumberStyle === "full" ? 10 : 50 + } + Behavior on anchors.leftMargin{ + animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) + } + implicitWidth: root.hourLineSize * 3.5 + implicitHeight: root.hourLineSize + radius: implicitWidth / 2 + color: root.colOnBackground + opacity: 1.0 + } + } + } + // Full dial style minute lines + Repeater { + model: 60 + Item { + opacity: Config.options.background.clock.cookie.dialNumberStyle === "full" ? 1.0 : 0 + Behavior on opacity { + animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) + } + required property int index + rotation: 360 / 60 * index + anchors.fill: parent + Rectangle { + anchors { + left: parent.left + verticalCenter: parent.verticalCenter + leftMargin: Config.options.background.clock.cookie.dialNumberStyle === "full" ? 10 : 50 + } + Behavior on anchors.leftMargin{ + animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) + } + implicitWidth: root.minuteLineSize * 3.5 + implicitHeight: root.minuteLineSize + radius: implicitWidth / 2 + color: root.colOnBackground + opacity: 0.5 + } + } + } + // Quote Rectangle{ diff --git a/.config/quickshell/ii/modules/common/Config.qml b/.config/quickshell/ii/modules/common/Config.qml index 43bdb8e76..19664751d 100644 --- a/.config/quickshell/ii/modules/common/Config.qml +++ b/.config/quickshell/ii/modules/common/Config.qml @@ -131,7 +131,7 @@ Singleton { property real scale: 1 property int clockSides: 12 property JsonObject cookie: JsonObject { - property string dialNumberStyle: "dots" // Options: "dots" , "numbers", "none" + property string dialNumberStyle: "dots" // Options: "dots" , "numbers", "full" , "none" property string minuteHandStyle: "medium" // Options: "medium", "bold" property string secondHandStyle: "dot" // Options: "dot", "line" , "none" property string dateStyle: "rotating" // Options: "rotating", "square", "none" diff --git a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml index 25b7eed36..3d2603283 100644 --- a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml +++ b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml @@ -101,11 +101,17 @@ ContentPage { icon: "graph_6", value: "dots" }, + { + displayName: Translation.tr("Full"), + icon: "avg_pace", + value: "full" + }, { displayName: Translation.tr("Numbers"), icon: "123", value: "numbers" } + ] } }