From 594dc6482494adb91852d0bcbea317562259b340 Mon Sep 17 00:00:00 2001 From: darksignal7 Date: Mon, 6 Oct 2025 18:32:02 +0300 Subject: [PATCH] change rect date animation and background color --- .../modules/background/cookieClock/DateIndicator.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/ii/modules/background/cookieClock/DateIndicator.qml b/.config/quickshell/ii/modules/background/cookieClock/DateIndicator.qml index 74c802106..671433a48 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/DateIndicator.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/DateIndicator.qml @@ -11,7 +11,8 @@ Item { id: root property string style: "rotating" property color colOnBackground: Appearance.colors.colOnSecondaryContainer - + property color colOnSecondary: Appearance.colors.colOnSecondaryContainer + Canvas { z: 0 width: parent.width @@ -55,12 +56,12 @@ Item { } } - // Date (only today's number) in right side of the clock + // Square date (only today's number) in right side of the clock Rectangle { z: 1 - implicitWidth: 45 + implicitWidth: root.style === "rect" ? 45 : 0 implicitHeight: root.style === "rect" ? 30 : 0 - color: root.colOnBackground + color: root.colOnSecondary radius: Appearance.rounding.small anchors { verticalCenter: parent.verticalCenter @@ -70,6 +71,9 @@ Item { Behavior on implicitHeight { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) } + Behavior on implicitWidth { + animation: Appearance.animation.elementResize.numberAnimation.createObject(this) + } StyledText { opacity: root.style === "rect" ? 1.0 : 0 Behavior on opacity {