diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-12 17:24:39 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-12 17:24:39 +1000 |
| commit | ab531a83b700788440d02ca0c3026bb05612515e (patch) | |
| tree | c04cb9f7ea46d22764c56d51043550e9c5a1b36c /modules/lock/WeatherInfo.qml | |
| parent | lock: better scaling + fix null error (diff) | |
| download | caelestia-shell-ab531a83b700788440d02ca0c3026bb05612515e.tar.gz caelestia-shell-ab531a83b700788440d02ca0c3026bb05612515e.tar.bz2 caelestia-shell-ab531a83b700788440d02ca0c3026bb05612515e.zip | |
lock: better scaling
Diffstat (limited to 'modules/lock/WeatherInfo.qml')
| -rw-r--r-- | modules/lock/WeatherInfo.qml | 19 |
1 files changed, 13 insertions, 6 deletions
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 |