From 37809f2030a1f520e0f66c1c69360f39b4e6f9dd Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 31 Jul 2025 22:06:15 +1000 Subject: internal: loader extra clock components --- modules/lock/Clock.qml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'modules/lock') 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 + } } } -- cgit v1.2.3-freya