summaryrefslogtreecommitdiff
path: root/modules/controlcenter/bluetooth/DeviceList.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-14 23:22:47 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-14 23:22:47 +1000
commitedef1d21fb59b62ae8b684b375b046fc483dcd48 (patch)
treeac31ae636a30082ff453f8c23f0483b74abf1926 /modules/controlcenter/bluetooth/DeviceList.qml
parentnix: use newer version of app2unit (#419) (diff)
downloadcaelestia-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.qml15
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 {