From acfef5103e66cfebcc882d8dd4f36daa0bb447cd Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 10 Aug 2025 21:48:57 +1000 Subject: lock: better lock anim --- modules/lock/WeatherInfo.qml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'modules/lock/WeatherInfo.qml') diff --git a/modules/lock/WeatherInfo.qml b/modules/lock/WeatherInfo.qml index b944d2f..1b5b29e 100644 --- a/modules/lock/WeatherInfo.qml +++ b/modules/lock/WeatherInfo.qml @@ -7,22 +7,10 @@ import QtQuick.Layouts RowLayout { id: root - Timer { - running: true - triggeredOnStart: true - repeat: true - interval: 900000 // 15 minutes - onTriggered: Weather.reload() - } - + anchors.fill: parent spacing: Appearance.spacing.large MaterialIcon { - id: icon - - Layout.alignment: Qt.AlignVCenter - Layout.topMargin: Config.lock.sizes.border / 4 - animate: true text: Weather.icon || "cloud_alert" color: Colours.palette.m3secondary @@ -31,8 +19,6 @@ RowLayout { ColumnLayout { Layout.alignment: Qt.AlignVCenter - Layout.topMargin: Config.lock.sizes.border / 4 - Layout.rightMargin: Config.lock.sizes.border / 2 spacing: Appearance.spacing.small @@ -49,7 +35,6 @@ RowLayout { StyledText { Layout.fillWidth: true - Layout.maximumWidth: Config.lock.sizes.weatherWidth - icon.implicitWidth animate: true text: Weather.description || qsTr("No weather") @@ -58,4 +43,12 @@ RowLayout { elide: Text.ElideRight } } + + Timer { + running: true + triggeredOnStart: true + repeat: true + interval: 900000 // 15 minutes + onTriggered: Weather.reload() + } } -- cgit v1.2.3-freya