diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-10 00:27:18 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-10 00:27:18 +1000 |
| commit | eff13f2830bf48fc3a9283565d81cbec284465cd (patch) | |
| tree | 757b0cf87c409fc82d736308209c71d7160fda7b | |
| parent | internal: fix scrolling for high res devices (diff) | |
| download | caelestia-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.qml | 2 | ||||
| -rw-r--r-- | modules/notifications/Content.qml | 2 | ||||
| -rw-r--r-- | shell.qml | 1 | ||||
| -rw-r--r-- | widgets/StyledListView.qml | 17 |
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 { @@ -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 + } + } +} |