diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-31 22:06:15 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-31 22:06:15 +1000 |
| commit | 37809f2030a1f520e0f66c1c69360f39b4e6f9dd (patch) | |
| tree | 9312919a5b1ca402fdcd0c0c4e2937a39ef2b9f9 /modules/dashboard/dash | |
| parent | dashboard: fix time spacing (diff) | |
| download | caelestia-shell-37809f2030a1f520e0f66c1c69360f39b4e6f9dd.tar.gz caelestia-shell-37809f2030a1f520e0f66c1c69360f39b4e6f9dd.tar.bz2 caelestia-shell-37809f2030a1f520e0f66c1c69360f39b4e6f9dd.zip | |
internal: loader extra clock components
Diffstat (limited to 'modules/dashboard/dash')
| -rw-r--r-- | modules/dashboard/dash/DateTime.qml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/dashboard/dash/DateTime.qml b/modules/dashboard/dash/DateTime.qml index 1583959..9d81741 100644 --- a/modules/dashboard/dash/DateTime.qml +++ b/modules/dashboard/dash/DateTime.qml @@ -1,3 +1,5 @@ +pragma ComponentBehavior: Bound + import qs.widgets import qs.services import qs.config @@ -45,14 +47,19 @@ Item { font.weight: 600 } - StyledText { - visible: Config.services.useTwelveHourClock + Loader { Layout.alignment: Qt.AlignHCenter - text: root.timeComponents[2] - color: Colours.palette.m3secondary - font.pointSize: Appearance.font.size.large - font.weight: 600 + asynchronous: true + active: Config.services.useTwelveHourClock + visible: active + + sourceComponent: StyledText { + text: root.timeComponents[2] ?? "" + color: Colours.palette.m3secondary + font.pointSize: Appearance.font.size.large + font.weight: 600 + } } StyledText { |