From ab531a83b700788440d02ca0c3026bb05612515e Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 12 Aug 2025 17:24:39 +1000 Subject: lock: better scaling --- modules/lock/WeatherInfo.qml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'modules/lock/WeatherInfo.qml') diff --git a/modules/lock/WeatherInfo.qml b/modules/lock/WeatherInfo.qml index 3695061..9da0b9b 100644 --- a/modules/lock/WeatherInfo.qml +++ b/modules/lock/WeatherInfo.qml @@ -18,17 +18,24 @@ ColumnLayout { spacing: Appearance.spacing.small - StyledText { + Loader { Layout.topMargin: Appearance.padding.large * 2 + Layout.bottomMargin: -Appearance.padding.large Layout.alignment: Qt.AlignHCenter - text: qsTr("Weather") - color: Colours.palette.m3primary - font.pointSize: Appearance.font.size.extraLarge - font.weight: 500 + + asynchronous: true + active: root.rootHeight > 610 + visible: active + + sourceComponent: StyledText { + text: qsTr("Weather") + color: Colours.palette.m3primary + font.pointSize: Appearance.font.size.extraLarge + font.weight: 500 + } } RowLayout { - Layout.bottomMargin: forecastLoader.active ? 0 : Appearance.padding.large Layout.fillWidth: true spacing: Appearance.spacing.large -- cgit v1.2.3-freya