diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-17 16:06:38 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-17 16:06:38 +1000 |
| commit | 5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a (patch) | |
| tree | a312e33f38e463c0ccef5c76199fbb9c18cca9f5 /modules/controlcenter/bluetooth/DeviceList.qml | |
| parent | lock: refactor (diff) | |
| download | caelestia-shell-5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a.tar.gz caelestia-shell-5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a.tar.bz2 caelestia-shell-5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a.zip | |
internal: scale rounding properly
Diffstat (limited to 'modules/controlcenter/bluetooth/DeviceList.qml')
| -rw-r--r-- | modules/controlcenter/bluetooth/DeviceList.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/controlcenter/bluetooth/DeviceList.qml b/modules/controlcenter/bluetooth/DeviceList.qml index 3435d84..bfbfd9c 100644 --- a/modules/controlcenter/bluetooth/DeviceList.qml +++ b/modules/controlcenter/bluetooth/DeviceList.qml @@ -113,7 +113,7 @@ ColumnLayout { implicitWidth: implicitHeight implicitHeight: scanIcon.implicitHeight + Appearance.padding.normal * 2 - radius: Bluetooth.defaultAdapter?.discovering ? Appearance.rounding.normal : implicitHeight / 2 + radius: Bluetooth.defaultAdapter?.discovering ? Appearance.rounding.normal : implicitHeight / 2 * Math.min(1, Appearance.rounding.scale) color: Bluetooth.defaultAdapter?.discovering ? Colours.palette.m3secondary : Colours.palette.m3secondaryContainer StateLayer { @@ -290,7 +290,7 @@ ColumnLayout { implicitWidth: toggleBtnInner.implicitWidth + Appearance.padding.large * 2 implicitHeight: toggleBtnIcon.implicitHeight + Appearance.padding.normal * 2 - radius: toggled || toggleStateLayer.pressed ? Appearance.rounding.small : Math.min(width, height) / 2 + radius: toggled || toggleStateLayer.pressed ? Appearance.rounding.small : Math.min(width, height) / 2 * Math.min(1, Appearance.rounding.scale) color: toggled ? Colours.palette[`m3${accent.toLowerCase()}`] : Colours.palette[`m3${accent.toLowerCase()}Container`] StateLayer { |