summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-10 00:27:18 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-10 00:27:18 +1000
commiteff13f2830bf48fc3a9283565d81cbec284465cd (patch)
tree757b0cf87c409fc82d736308209c71d7160fda7b
parentinternal: fix scrolling for high res devices (diff)
downloadcaelestia-shell-eff13f2830bf48fc3a9283565d81cbec284465cd.tar.gz
caelestia-shell-eff13f2830bf48fc3a9283565d81cbec284465cd.tar.bz2
caelestia-shell-eff13f2830bf48fc3a9283565d81cbec284465cd.zip
internal: scroll fix part 2
Closes #202
-rw-r--r--modules/launcher/AppList.qml2
-rw-r--r--modules/notifications/Content.qml2
-rw-r--r--shell.qml1
-rw-r--r--widgets/StyledListView.qml17
4 files changed, 20 insertions, 2 deletions
diff --git a/modules/launcher/AppList.qml b/modules/launcher/AppList.qml
index bbcb27f..db0e6d8 100644
--- a/modules/launcher/AppList.qml
+++ b/modules/launcher/AppList.qml
@@ -7,7 +7,7 @@ import Quickshell
import QtQuick
import QtQuick.Controls
-ListView {
+StyledListView {
id: root
required property TextField search
diff --git a/modules/notifications/Content.qml b/modules/notifications/Content.qml
index 84df4c3..6f326c5 100644
--- a/modules/notifications/Content.qml
+++ b/modules/notifications/Content.qml
@@ -50,7 +50,7 @@ Item {
color: "transparent"
radius: Appearance.rounding.normal
- ListView {
+ StyledListView {
id: list
model: ScriptModel {
diff --git a/shell.qml b/shell.qml
index f649fed..b5c2c9d 100644
--- a/shell.qml
+++ b/shell.qml
@@ -1,4 +1,5 @@
//@ pragma Env QS_NO_RELOAD_POPUP=1
+//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
import "modules"
import "modules/drawers"
diff --git a/widgets/StyledListView.qml b/widgets/StyledListView.qml
new file mode 100644
index 0000000..bb004fb
--- /dev/null
+++ b/widgets/StyledListView.qml
@@ -0,0 +1,17 @@
+import "root:/config"
+import QtQuick
+
+ListView {
+ id: root
+
+ maximumFlickVelocity: 3000
+
+ rebound: Transition {
+ NumberAnimation {
+ properties: "x,y"
+ duration: Appearance.anim.durations.normal
+ easing.type: Easing.BezierSpline
+ easing.bezierCurve: Appearance.anim.curves.standard
+ }
+ }
+}