diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-10 21:48:57 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-10 21:48:57 +1000 |
| commit | acfef5103e66cfebcc882d8dd4f36daa0bb447cd (patch) | |
| tree | 6aeb01941a9d4ce4848d1b6722fc967dd85d2292 /modules/lock/WeatherInfo.qml | |
| parent | lock: add date (diff) | |
| download | caelestia-shell-acfef5103e66cfebcc882d8dd4f36daa0bb447cd.tar.gz caelestia-shell-acfef5103e66cfebcc882d8dd4f36daa0bb447cd.tar.bz2 caelestia-shell-acfef5103e66cfebcc882d8dd4f36daa0bb447cd.zip | |
lock: better lock anim
Diffstat (limited to '')
| -rw-r--r-- | modules/lock/WeatherInfo.qml | 25 |
1 files changed, 9 insertions, 16 deletions
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() + } } |