diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-06 14:42:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-06 14:42:48 +1000 |
| commit | 33501ae7e5a87ab29bf8acc6591a959c99c92a63 (patch) | |
| tree | eff027ebb6a627f13b2e9f5110ecda65ab212f38 | |
| parent | config: add audio increment option (diff) | |
| download | caelestia-shell-33501ae7e5a87ab29bf8acc6591a959c99c92a63.tar.gz caelestia-shell-33501ae7e5a87ab29bf8acc6591a959c99c92a63.tar.bz2 caelestia-shell-33501ae7e5a87ab29bf8acc6591a959c99c92a63.zip | |
controlcenter/bt: better styling
Less width when toggle buttons pressed
Use expressive anim
| -rw-r--r-- | modules/controlcenter/bluetooth/DeviceList.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/controlcenter/bluetooth/DeviceList.qml b/modules/controlcenter/bluetooth/DeviceList.qml index e93c569..839f6ad 100644 --- a/modules/controlcenter/bluetooth/DeviceList.qml +++ b/modules/controlcenter/bluetooth/DeviceList.qml @@ -296,7 +296,7 @@ ColumnLayout { function onClicked(): void { } - Layout.preferredWidth: implicitWidth + (toggleStateLayer.pressed ? Appearance.padding.larger * 2 : toggled ? Appearance.padding.small * 2 : 0) + Layout.preferredWidth: implicitWidth + (toggleStateLayer.pressed ? Appearance.padding.normal * 2 : toggled ? Appearance.padding.small * 2 : 0) implicitWidth: toggleBtnInner.implicitWidth + Appearance.padding.large * 2 implicitHeight: toggleBtnIcon.implicitHeight + Appearance.padding.normal * 2 @@ -346,7 +346,10 @@ ColumnLayout { } Behavior on radius { - Anim {} + Anim { + duration: Appearance.anim.durations.expressiveFastSpatial + easing.bezierCurve: Appearance.anim.curves.expressiveFastSpatial + } } Behavior on Layout.preferredWidth { |