diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-19 23:56:17 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-19 23:56:17 +1000 |
| commit | ccc398b2a085ccd56b72e4dfa550da8742d55b6d (patch) | |
| tree | 3e1234a0e6d522d5611764450b8008db3f47be45 /modules | |
| parent | sidebar/notifs: fix clear all button & expand bugs (diff) | |
| download | caelestia-shell-ccc398b2a085ccd56b72e4dfa550da8742d55b6d.tar.gz caelestia-shell-ccc398b2a085ccd56b72e4dfa550da8742d55b6d.tar.bz2 caelestia-shell-ccc398b2a085ccd56b72e4dfa550da8742d55b6d.zip | |
internal: better scroll bar
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/controlcenter/bluetooth/DeviceList.qml | 8 | ||||
| -rw-r--r-- | modules/launcher/AppList.qml | 5 | ||||
| -rw-r--r-- | modules/sidebar/NotifDock.qml | 6 | ||||
| -rw-r--r-- | modules/utilities/cards/RecordingList.qml | 4 |
4 files changed, 17 insertions, 6 deletions
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 diff --git a/modules/launcher/AppList.qml b/modules/launcher/AppList.qml index 92f86d5..7f7b843 100644 --- a/modules/launcher/AppList.qml +++ b/modules/launcher/AppList.qml @@ -9,7 +9,6 @@ import qs.services import qs.config import Quickshell import QtQuick -import QtQuick.Controls StyledListView { id: root @@ -161,7 +160,9 @@ StyledListView { } } - ScrollBar.vertical: StyledScrollBar {} + StyledScrollBar.vertical: StyledScrollBar { + flickable: root + } add: Transition { enabled: !root.state diff --git a/modules/sidebar/NotifDock.qml b/modules/sidebar/NotifDock.qml index 588811a..9ae9cce 100644 --- a/modules/sidebar/NotifDock.qml +++ b/modules/sidebar/NotifDock.qml @@ -90,6 +90,8 @@ Item { } StyledListView { + id: view + anchors.fill: parent spacing: Appearance.spacing.small @@ -98,7 +100,9 @@ Item { values: [...new Set(Notifs.list.filter(n => !n.closed).map(n => n.appName))].reverse() } - StyledScrollBar.vertical: StyledScrollBar {} + StyledScrollBar.vertical: StyledScrollBar { + flickable: view + } delegate: MouseArea { id: notif diff --git a/modules/utilities/cards/RecordingList.qml b/modules/utilities/cards/RecordingList.qml index 1250ab3..461d517 100644 --- a/modules/utilities/cards/RecordingList.qml +++ b/modules/utilities/cards/RecordingList.qml @@ -66,7 +66,9 @@ ColumnLayout { implicitHeight: (Appearance.font.size.larger + Appearance.padding.small) * (root.props.recordingListExpanded ? 10 : 3) clip: true - StyledScrollBar.vertical: StyledScrollBar {} + StyledScrollBar.vertical: StyledScrollBar { + flickable: list + } delegate: RowLayout { id: recording |