summaryrefslogtreecommitdiff
path: root/modules/bar/popouts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-26 14:23:12 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-26 14:23:12 +1000
commitd6f48946d5700d711ca606d472d2a51c4ca057de (patch)
treecd50cac69aec4d2d150c6a3aaded0cd373b2114a /modules/bar/popouts
parentpopouts: some fixes for network (diff)
downloadcaelestia-shell-d6f48946d5700d711ca606d472d2a51c4ca057de.tar.gz
caelestia-shell-d6f48946d5700d711ca606d472d2a51c4ca057de.tar.bz2
caelestia-shell-d6f48946d5700d711ca606d472d2a51c4ca057de.zip
popouts: fix scan icon rotation
Diffstat (limited to 'modules/bar/popouts')
-rw-r--r--modules/bar/popouts/Network.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/bar/popouts/Network.qml b/modules/bar/popouts/Network.qml
index ae0f45a..5a2d472 100644
--- a/modules/bar/popouts/Network.qml
+++ b/modules/bar/popouts/Network.qml
@@ -172,12 +172,13 @@ ColumnLayout {
spacing: Appearance.spacing.small
MaterialIcon {
+ id: scanIcon
+
animate: true
text: Network.scanning ? "refresh" : "wifi_find"
color: Network.scanning ? Colours.palette.m3onSurface : Colours.palette.m3onPrimaryContainer
RotationAnimation on rotation {
- alwaysRunToEnd: true
running: Network.scanning
loops: Animation.Infinite
from: 0
@@ -202,6 +203,11 @@ ColumnLayout {
root.connectingToSsid = "";
}
}
+
+ function onScanningChanged(): void {
+ if (!Network.scanning)
+ scanIcon.rotation = 0;
+ }
}
component Toggle: RowLayout {