summaryrefslogtreecommitdiff
path: root/modules/lock/Clock.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-31 22:06:15 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-31 22:06:15 +1000
commit37809f2030a1f520e0f66c1c69360f39b4e6f9dd (patch)
tree9312919a5b1ca402fdcd0c0c4e2937a39ef2b9f9 /modules/lock/Clock.qml
parentdashboard: fix time spacing (diff)
downloadcaelestia-shell-37809f2030a1f520e0f66c1c69360f39b4e6f9dd.tar.gz
caelestia-shell-37809f2030a1f520e0f66c1c69360f39b4e6f9dd.tar.bz2
caelestia-shell-37809f2030a1f520e0f66c1c69360f39b4e6f9dd.zip
internal: loader extra clock components
Diffstat (limited to 'modules/lock/Clock.qml')
-rw-r--r--modules/lock/Clock.qml19
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/lock/Clock.qml b/modules/lock/Clock.qml
index 888c877..53c1b36 100644
--- a/modules/lock/Clock.qml
+++ b/modules/lock/Clock.qml
@@ -1,3 +1,5 @@
+pragma ComponentBehavior: Bound
+
import qs.widgets
import qs.services
import qs.config
@@ -42,15 +44,20 @@ ColumnLayout {
font.weight: 800
}
- StyledText {
- visible: Config.services.useTwelveHourClock
+ Loader {
Layout.leftMargin: Appearance.spacing.normal
Layout.alignment: Qt.AlignVCenter
- text: root.timeComponents[2]
- color: Colours.palette.m3primary
- font.pointSize: Appearance.font.size.extraLarge * 3
- font.weight: 700
+ asynchronous: true
+ active: Config.services.useTwelveHourClock
+ visible: active
+
+ sourceComponent: StyledText {
+ text: root.timeComponents[2] ?? ""
+ color: Colours.palette.m3primary
+ font.pointSize: Appearance.font.size.extraLarge * 3
+ font.weight: 700
+ }
}
}