diff options
Diffstat (limited to 'modules/lock/Clock.qml')
| -rw-r--r-- | modules/lock/Clock.qml | 19 |
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 + } } } |