summaryrefslogtreecommitdiff
path: root/modules/lock/WeatherInfo.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lock/WeatherInfo.qml')
-rw-r--r--modules/lock/WeatherInfo.qml19
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