mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
scrollbar: add to stuff, adjust draggable spacing
This commit is contained in:
parent
b0acc5a68e
commit
5b47a20d49
3 changed files with 7 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
import qs.modules.common
|
import qs.modules.common
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
|
|
@ -12,6 +13,8 @@ Flickable {
|
||||||
// Accumulated scroll destination so wheel deltas stack while animating
|
// Accumulated scroll destination so wheel deltas stack while animating
|
||||||
property real scrollTargetY: 0
|
property real scrollTargetY: 0
|
||||||
|
|
||||||
|
ScrollBar.vertical: StyledScrollBar {}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
visible: Config?.options.interactions.scrolling.fasterTouchpadScroll
|
visible: Config?.options.interactions.scrolling.fasterTouchpadScroll
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import qs.modules.common
|
||||||
import qs.modules.common.widgets
|
import qs.modules.common.widgets
|
||||||
import qs.services
|
import qs.services
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A ListView with animations.
|
* A ListView with animations.
|
||||||
|
|
@ -30,6 +31,7 @@ ListView {
|
||||||
|
|
||||||
maximumFlickVelocity: 3500
|
maximumFlickVelocity: 3500
|
||||||
boundsBehavior: Flickable.DragOverBounds
|
boundsBehavior: Flickable.DragOverBounds
|
||||||
|
ScrollBar.vertical: StyledScrollBar {}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
visible: Config?.options.interactions.scrolling.fasterTouchpadScroll
|
visible: Config?.options.interactions.scrolling.fasterTouchpadScroll
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@ ScrollBar {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
policy: ScrollBar.AsNeeded
|
policy: ScrollBar.AsNeeded
|
||||||
|
topPadding: Appearance.rounding.normal
|
||||||
|
bottomPadding: Appearance.rounding.normal
|
||||||
|
|
||||||
contentItem: Rectangle {
|
contentItem: Rectangle {
|
||||||
implicitWidth: 4
|
implicitWidth: 4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue