diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-14 23:22:47 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-14 23:22:47 +1000 |
| commit | edef1d21fb59b62ae8b684b375b046fc483dcd48 (patch) | |
| tree | ac31ae636a30082ff453f8c23f0483b74abf1926 /modules/controlcenter/bluetooth/DeviceList.qml | |
| parent | nix: use newer version of app2unit (#419) (diff) | |
| download | caelestia-shell-edef1d21fb59b62ae8b684b375b046fc483dcd48.tar.gz caelestia-shell-edef1d21fb59b62ae8b684b375b046fc483dcd48.tar.bz2 caelestia-shell-edef1d21fb59b62ae8b684b375b046fc483dcd48.zip | |
internal: better loading indicator
Abstract circular progress into own component
Diffstat (limited to 'modules/controlcenter/bluetooth/DeviceList.qml')
| -rw-r--r-- | modules/controlcenter/bluetooth/DeviceList.qml | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/modules/controlcenter/bluetooth/DeviceList.qml b/modules/controlcenter/bluetooth/DeviceList.qml index a1644e5..3435d84 100644 --- a/modules/controlcenter/bluetooth/DeviceList.qml +++ b/modules/controlcenter/bluetooth/DeviceList.qml @@ -237,23 +237,14 @@ ColumnLayout { id: connectBtn implicitWidth: implicitHeight - implicitHeight: connectIcon.implicitHeight + Appearance.padding.small * 2 + implicitHeight: connectIcon.implicitHeight + Appearance.padding.smaller * 2 radius: Appearance.rounding.full color: Qt.alpha(Colours.palette.m3primaryContainer, device.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 { |