From 33501ae7e5a87ab29bf8acc6591a959c99c92a63 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 6 Aug 2025 14:42:48 +1000 Subject: controlcenter/bt: better styling Less width when toggle buttons pressed Use expressive anim --- modules/controlcenter/bluetooth/DeviceList.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/controlcenter/bluetooth') 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 { -- cgit v1.2.3-freya