summaryrefslogtreecommitdiff
path: root/modules/background/DesktopClock.qml
diff options
context:
space:
mode:
authorLaurens Duin <85798751+Laurens256@users.noreply.github.com>2025-07-31 12:41:56 +0200
committerGitHub <noreply@github.com>2025-07-31 20:41:56 +1000
commit7edcae651e1124c1437be93594c3aebf64090372 (patch)
tree6f9f8c34ef34228d40c15b596ad1dfa23cc674d4 /modules/background/DesktopClock.qml
parentconfig: allow configuring external audio program (diff)
downloadcaelestia-shell-7edcae651e1124c1437be93594c3aebf64090372.tar.gz
caelestia-shell-7edcae651e1124c1437be93594c3aebf64090372.tar.bz2
caelestia-shell-7edcae651e1124c1437be93594c3aebf64090372.zip
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>
Diffstat (limited to 'modules/background/DesktopClock.qml')
-rw-r--r--modules/background/DesktopClock.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/background/DesktopClock.qml b/modules/background/DesktopClock.qml
index 380e65a..a0e3f13 100644
--- a/modules/background/DesktopClock.qml
+++ b/modules/background/DesktopClock.qml
@@ -11,7 +11,7 @@ Item {
id: timeText
anchors.centerIn: parent
- text: Time.format("hh:mm:ss")
+ text: Time.format(Config.services.useTwelveHourClock ? "hh:mm:ss A" : "hh:mm:ss")
font.pointSize: Appearance.font.size.extraLarge
font.bold: true
}