From 7edcae651e1124c1437be93594c3aebf64090372 Mon Sep 17 00:00:00 2001 From: Laurens Duin <85798751+Laurens256@users.noreply.github.com> Date: Thu, 31 Jul 2025 12:41:56 +0200 Subject: config: respect user locale for twelve hour clock & temperature (#290) * bar: add 12h clock option * feat: allow custom format config * feat: 12h clock based on locale with config * chore: cleanup * fix: PR comments, add automatic fahrenheit * fix: formatting * dashboard: fix up date time * lock: better 12h clock --------- Co-authored-by: Soramane <61896496+soramanew@users.noreply.github.com> --- modules/bar/components/Clock.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/bar/components') diff --git a/modules/bar/components/Clock.qml b/modules/bar/components/Clock.qml index a384f51..f045f9d 100644 --- a/modules/bar/components/Clock.qml +++ b/modules/bar/components/Clock.qml @@ -25,7 +25,7 @@ Column { anchors.horizontalCenter: parent.horizontalCenter horizontalAlignment: StyledText.AlignHCenter - text: Time.format("hh\nmm") + text: Time.format(Config.services.useTwelveHourClock ? "hh\nmm\nA" : "hh\nmm") font.pointSize: Appearance.font.size.smaller font.family: Appearance.font.family.mono color: root.colour -- cgit v1.2.3-freya