From 5b47a20d49873d5c958e8b52c3edbee42e8e6f43 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 5 Sep 2025 23:34:20 +0200 Subject: [PATCH] scrollbar: add to stuff, adjust draggable spacing --- .../quickshell/ii/modules/common/widgets/StyledFlickable.qml | 3 +++ .../quickshell/ii/modules/common/widgets/StyledListView.qml | 2 ++ .../quickshell/ii/modules/common/widgets/StyledScrollBar.qml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/.config/quickshell/ii/modules/common/widgets/StyledFlickable.qml b/.config/quickshell/ii/modules/common/widgets/StyledFlickable.qml index c765a3fc..1f32326d 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledFlickable.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledFlickable.qml @@ -1,4 +1,5 @@ import QtQuick +import QtQuick.Controls import qs.modules.common Flickable { @@ -12,6 +13,8 @@ Flickable { // Accumulated scroll destination so wheel deltas stack while animating property real scrollTargetY: 0 + ScrollBar.vertical: StyledScrollBar {} + MouseArea { visible: Config?.options.interactions.scrolling.fasterTouchpadScroll anchors.fill: parent diff --git a/.config/quickshell/ii/modules/common/widgets/StyledListView.qml b/.config/quickshell/ii/modules/common/widgets/StyledListView.qml index f005e9f4..08332142 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledListView.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledListView.qml @@ -3,6 +3,7 @@ import qs.modules.common import qs.modules.common.widgets import qs.services import QtQuick +import QtQuick.Controls /** * A ListView with animations. @@ -30,6 +31,7 @@ ListView { maximumFlickVelocity: 3500 boundsBehavior: Flickable.DragOverBounds + ScrollBar.vertical: StyledScrollBar {} MouseArea { visible: Config?.options.interactions.scrolling.fasterTouchpadScroll diff --git a/.config/quickshell/ii/modules/common/widgets/StyledScrollBar.qml b/.config/quickshell/ii/modules/common/widgets/StyledScrollBar.qml index ab357e09..7b677c42 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledScrollBar.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledScrollBar.qml @@ -7,6 +7,8 @@ ScrollBar { id: root policy: ScrollBar.AsNeeded + topPadding: Appearance.rounding.normal + bottomPadding: Appearance.rounding.normal contentItem: Rectangle { implicitWidth: 4