summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/ServiceConfig.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/ServiceConfig.qml b/config/ServiceConfig.qml
index 0b8b170..5c48fcb 100644
--- a/config/ServiceConfig.qml
+++ b/config/ServiceConfig.qml
@@ -1,6 +1,8 @@
import Quickshell.Io
+import QtQuick
JsonObject {
property string weatherLocation: "" // A lat,long pair or empty for autodetection, e.g. "37.8267,-122.4233"
- property bool useFahrenheit: false
+ property bool useFahrenheit: [Locale.ImperialUSSystem, Locale.ImperialSystem].includes(Qt.locale().measurementSystem)
+ property bool useTwelveHourClock: Qt.locale().timeFormat(Locale.ShortFormat).toLowerCase().includes("a")
}