From 2b8b97ab3b1ff3f7b891cbb2961151db70a5b61a Mon Sep 17 00:00:00 2001 From: Kevin Diaz Date: Thu, 18 Sep 2025 19:57:09 -0400 Subject: [PATCH] fix(clock): respect monthBeforeDay setting in vertical clock date display --- Modules/Bar/Widgets/Clock.qml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Modules/Bar/Widgets/Clock.qml b/Modules/Bar/Widgets/Clock.qml index 0033b053..28a2205d 100644 --- a/Modules/Bar/Widgets/Clock.qml +++ b/Modules/Bar/Widgets/Clock.qml @@ -157,14 +157,12 @@ Rectangle { if (verticalMode) { // Compact mode: date section (last 2 lines) switch (index) { - case 0: - // Day - return now.getDate().toString().padStart(2, '0') - case 1: - // Month - return (now.getMonth() + 1).toString().padStart(2, '0') - default: - return "" + case 0: + return monthBeforeDay ? (now.getMonth() + 1).toString().padStart(2, '0') : now.getDate().toString().padStart(2, '0') + case 1: + return monthBeforeDay ? now.getDate().toString().padStart(2, '0') : (now.getMonth() + 1).toString().padStart(2, '0') + default: + return "" } } return ""