From edef1d21fb59b62ae8b684b375b046fc483dcd48 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 14 Aug 2025 23:22:47 +1000 Subject: internal: better loading indicator Abstract circular progress into own component --- modules/bar/popouts/Bluetooth.qml | 13 ++----------- modules/bar/popouts/Network.qml | 13 ++----------- 2 files changed, 4 insertions(+), 22 deletions(-) (limited to 'modules/bar') diff --git a/modules/bar/popouts/Bluetooth.qml b/modules/bar/popouts/Bluetooth.qml index 6678030..22bdc77 100644 --- a/modules/bar/popouts/Bluetooth.qml +++ b/modules/bar/popouts/Bluetooth.qml @@ -111,17 +111,8 @@ ColumnLayout { color: Qt.alpha(Colours.palette.m3primary, device.modelData.state === BluetoothDeviceState.Connected ? 1 : 0) StyledBusyIndicator { - anchors.centerIn: parent - - implicitWidth: implicitHeight - implicitHeight: connectIcon.implicitHeight - - running: opacity > 0 - opacity: device.loading ? 1 : 0 - - Behavior on opacity { - Anim {} - } + anchors.fill: parent + running: device.loading } StateLayer { diff --git a/modules/bar/popouts/Network.qml b/modules/bar/popouts/Network.qml index 6a95b73..966823e 100644 --- a/modules/bar/popouts/Network.qml +++ b/modules/bar/popouts/Network.qml @@ -105,17 +105,8 @@ ColumnLayout { color: Qt.alpha(Colours.palette.m3primary, networkItem.modelData.active ? 1 : 0) StyledBusyIndicator { - anchors.centerIn: parent - - implicitWidth: implicitHeight - implicitHeight: connectIcon.implicitHeight - - running: opacity > 0 - opacity: networkItem.loading ? 1 : 0 - - Behavior on opacity { - Anim {} - } + anchors.fill: parent + running: networkItem.loading } StateLayer { -- cgit v1.2.3-freya