From c197f6eab22ff964c645ccb258f22a58a61f1044 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 11 Oct 2025 16:57:26 +0200 Subject: [PATCH] bg clock: fix am pm parsing for 1 digit hours --- .../ii/modules/background/cookieClock/TimeColumn.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/quickshell/ii/modules/background/cookieClock/TimeColumn.qml b/.config/quickshell/ii/modules/background/cookieClock/TimeColumn.qml index f667dc86f..bcad89538 100644 --- a/.config/quickshell/ii/modules/background/cookieClock/TimeColumn.qml +++ b/.config/quickshell/ii/modules/background/cookieClock/TimeColumn.qml @@ -21,7 +21,8 @@ Column { delegate: StyledText { required property string modelData - property bool isAmPm: !modelData.match(/\d{2}/i) + text: modelData.padStart(2, "0") + property bool isAmPm: !text.match(/\d{2}/i) property real numberSizeWithoutGlow: isAmPm ? 26 : 68 property real numberSizeWithGlow: isAmPm ? 20 : 40 property real numberSize: root.hourMarksEnabled ? numberSizeWithGlow : numberSizeWithoutGlow @@ -37,8 +38,6 @@ Column { Behavior on numberSize { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) } - - text: modelData.padStart(2, "0") } } }