From ccc398b2a085ccd56b72e4dfa550da8742d55b6d Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 19 Sep 2025 23:56:17 +1000 Subject: internal: better scroll bar --- modules/controlcenter/bluetooth/DeviceList.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/controlcenter/bluetooth') diff --git a/modules/controlcenter/bluetooth/DeviceList.qml b/modules/controlcenter/bluetooth/DeviceList.qml index 020eced..3831e4a 100644 --- a/modules/controlcenter/bluetooth/DeviceList.qml +++ b/modules/controlcenter/bluetooth/DeviceList.qml @@ -11,7 +11,6 @@ import Quickshell import Quickshell.Bluetooth import QtQuick import QtQuick.Layouts -import QtQuick.Controls ColumnLayout { id: root @@ -143,8 +142,11 @@ ColumnLayout { } StyledListView { + id: view + model: ScriptModel { id: deviceModel + values: [...Bluetooth.devices.values].sort((a, b) => (b.connected - a.connected) || (b.paired - a.paired)) } @@ -153,7 +155,9 @@ ColumnLayout { clip: true spacing: Appearance.spacing.small / 2 - ScrollBar.vertical: StyledScrollBar {} + StyledScrollBar.vertical: StyledScrollBar { + flickable: view + } delegate: StyledRect { id: device -- cgit v1.2.3-freya