From 496caa6fb1bcc404c72e1167ddafed76e76d3209 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 28 Jul 2025 11:58:50 +0700 Subject: [PATCH] fix weirdass scroll speed --- .../quickshell/ii/modules/common/widgets/ContentPage.qml | 3 ++- .../ii/modules/common/widgets/NotificationItem.qml | 2 +- .../ii/modules/common/widgets/SelectionDialog.qml | 3 +++ .../ii/modules/common/widgets/StyledFlickable.qml | 6 ++++++ .../quickshell/ii/modules/common/widgets/StyledListView.qml | 3 +++ .config/quickshell/ii/modules/overview/SearchWidget.qml | 4 +++- .../ii/modules/sidebarLeft/anime/BooruResponse.qml | 2 +- .../quickshell/ii/modules/sidebarRight/todo/TaskList.qml | 2 +- .../ii/modules/sidebarRight/volumeMixer/VolumeMixer.qml | 4 ++-- .config/quickshell/ii/screenshot.qml | 1 + .config/quickshell/ii/settings.qml | 1 + .config/quickshell/ii/shell.qml | 2 ++ .config/quickshell/ii/welcome.qml | 1 + 13 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 .config/quickshell/ii/modules/common/widgets/StyledFlickable.qml diff --git a/.config/quickshell/ii/modules/common/widgets/ContentPage.qml b/.config/quickshell/ii/modules/common/widgets/ContentPage.qml index dc87179fe..5b110f838 100644 --- a/.config/quickshell/ii/modules/common/widgets/ContentPage.qml +++ b/.config/quickshell/ii/modules/common/widgets/ContentPage.qml @@ -3,7 +3,7 @@ import QtQuick.Layouts import qs.modules.common import qs.modules.common.widgets -Flickable { +StyledFlickable { id: root property real baseWidth: 550 property bool forceWidth: false @@ -25,4 +25,5 @@ Flickable { } spacing: 20 } + } diff --git a/.config/quickshell/ii/modules/common/widgets/NotificationItem.qml b/.config/quickshell/ii/modules/common/widgets/NotificationItem.qml index 4f5688b83..f7d30833d 100644 --- a/.config/quickshell/ii/modules/common/widgets/NotificationItem.qml +++ b/.config/quickshell/ii/modules/common/widgets/NotificationItem.qml @@ -220,7 +220,7 @@ Item { // Notification item area PointingHandLinkHover {} } - Flickable { // Notification actions + StyledFlickable { // Notification actions id: actionsFlickable Layout.fillWidth: true implicitHeight: actionRowLayout.implicitHeight diff --git a/.config/quickshell/ii/modules/common/widgets/SelectionDialog.qml b/.config/quickshell/ii/modules/common/widgets/SelectionDialog.qml index 4dd2382cd..72da7ec5e 100644 --- a/.config/quickshell/ii/modules/common/widgets/SelectionDialog.qml +++ b/.config/quickshell/ii/modules/common/widgets/SelectionDialog.qml @@ -71,6 +71,9 @@ Item { currentIndex: root.defaultChoice !== undefined ? root.items.indexOf(root.defaultChoice) : -1 spacing: 6 + maximumFlickVelocity: 3500 + boundsBehavior: Flickable.DragOverBounds + model: ScriptModel { id: choiceModel } diff --git a/.config/quickshell/ii/modules/common/widgets/StyledFlickable.qml b/.config/quickshell/ii/modules/common/widgets/StyledFlickable.qml new file mode 100644 index 000000000..14b3af03c --- /dev/null +++ b/.config/quickshell/ii/modules/common/widgets/StyledFlickable.qml @@ -0,0 +1,6 @@ +import QtQuick + +Flickable { + maximumFlickVelocity: 3500 + boundsBehavior: Flickable.DragOverBounds +} diff --git a/.config/quickshell/ii/modules/common/widgets/StyledListView.qml b/.config/quickshell/ii/modules/common/widgets/StyledListView.qml index 96874b865..7021f24a4 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledListView.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledListView.qml @@ -20,6 +20,9 @@ ListView { root.dragDistance = 0 } + maximumFlickVelocity: 3500 + boundsBehavior: Flickable.DragOverBounds + add: Transition { animations: [ Appearance?.animation.elementMove.numberAnimation.createObject(this, { diff --git a/.config/quickshell/ii/modules/overview/SearchWidget.qml b/.config/quickshell/ii/modules/overview/SearchWidget.qml index 2f4cdfada..51100d2ce 100644 --- a/.config/quickshell/ii/modules/overview/SearchWidget.qml +++ b/.config/quickshell/ii/modules/overview/SearchWidget.qml @@ -249,7 +249,7 @@ Item { // Wrapper color: Appearance.colors.colOutlineVariant } - ListView { // App results + StyledListView { // App results id: appResults visible: root.showResults Layout.fillWidth: true @@ -260,6 +260,8 @@ Item { // Wrapper spacing: 2 KeyNavigation.up: searchBar highlightMoveDuration: 100 + add: null + remove: null onFocusChanged: { if (focus) diff --git a/.config/quickshell/ii/modules/sidebarLeft/anime/BooruResponse.qml b/.config/quickshell/ii/modules/sidebarLeft/anime/BooruResponse.qml index 0aa7479f6..904d0ab06 100644 --- a/.config/quickshell/ii/modules/sidebarLeft/anime/BooruResponse.qml +++ b/.config/quickshell/ii/modules/sidebarLeft/anime/BooruResponse.qml @@ -97,7 +97,7 @@ Rectangle { } } - Flickable { // Tag strip + StyledFlickable { // Tag strip id: tagsFlickable visible: root.responseData.tags.length > 0 Layout.alignment: Qt.AlignLeft diff --git a/.config/quickshell/ii/modules/sidebarRight/todo/TaskList.qml b/.config/quickshell/ii/modules/sidebarRight/todo/TaskList.qml index d9a2b67c3..4f6a4304d 100644 --- a/.config/quickshell/ii/modules/sidebarRight/todo/TaskList.qml +++ b/.config/quickshell/ii/modules/sidebarRight/todo/TaskList.qml @@ -16,7 +16,7 @@ Item { property int todoListItemPadding: 8 property int listBottomPadding: 80 - Flickable { + StyledFlickable { id: flickable anchors.fill: parent contentHeight: columnLayout.height diff --git a/.config/quickshell/ii/modules/sidebarRight/volumeMixer/VolumeMixer.qml b/.config/quickshell/ii/modules/sidebarRight/volumeMixer/VolumeMixer.qml index 4141ec7f6..f9e0118bb 100644 --- a/.config/quickshell/ii/modules/sidebarRight/volumeMixer/VolumeMixer.qml +++ b/.config/quickshell/ii/modules/sidebarRight/volumeMixer/VolumeMixer.qml @@ -40,7 +40,7 @@ Item { Item { Layout.fillWidth: true Layout.fillHeight: true - ListView { + StyledListView { id: listView model: root.appPwNodes clip: true @@ -187,7 +187,7 @@ Item { Layout.rightMargin: dialogMargins } - Flickable { + StyledFlickable { id: dialogFlickable Layout.fillWidth: true clip: true diff --git a/.config/quickshell/ii/screenshot.qml b/.config/quickshell/ii/screenshot.qml index c26840a99..7cd46bc89 100644 --- a/.config/quickshell/ii/screenshot.qml +++ b/.config/quickshell/ii/screenshot.qml @@ -1,6 +1,7 @@ //@ pragma UseQApplication //@ pragma Env QS_NO_RELOAD_POPUP=1 //@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic +//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000 // Adjust this to make it smaller or larger //@ pragma Env QT_SCALE_FACTOR=1 diff --git a/.config/quickshell/ii/settings.qml b/.config/quickshell/ii/settings.qml index 41e1938f1..a15670b14 100644 --- a/.config/quickshell/ii/settings.qml +++ b/.config/quickshell/ii/settings.qml @@ -1,6 +1,7 @@ //@ pragma UseQApplication //@ pragma Env QS_NO_RELOAD_POPUP=1 //@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic +//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000 // Adjust this to make the app smaller or larger //@ pragma Env QT_SCALE_FACTOR=1 diff --git a/.config/quickshell/ii/shell.qml b/.config/quickshell/ii/shell.qml index 9bba71041..7380da583 100644 --- a/.config/quickshell/ii/shell.qml +++ b/.config/quickshell/ii/shell.qml @@ -1,10 +1,12 @@ //@ pragma UseQApplication //@ pragma Env QS_NO_RELOAD_POPUP=1 //@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic +//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000 // Adjust this to make the shell smaller or larger //@ pragma Env QT_SCALE_FACTOR=1 + import "./modules/common/" import "./modules/background/" import "./modules/bar/" diff --git a/.config/quickshell/ii/welcome.qml b/.config/quickshell/ii/welcome.qml index 14656ed71..07b16a83c 100644 --- a/.config/quickshell/ii/welcome.qml +++ b/.config/quickshell/ii/welcome.qml @@ -1,6 +1,7 @@ //@ pragma UseQApplication //@ pragma Env QS_NO_RELOAD_POPUP=1 //@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic +//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000 // Adjust this to make the app smaller or larger //@ pragma Env QT_SCALE_FACTOR=1