diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-02 20:58:49 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-02 20:58:49 +1000 |
| commit | 1d942b07379e76b35f4de705b713720a9a8ed22e (patch) | |
| tree | ed857d1c5df0e52d393a9b150883b41bbab17f34 | |
| parent | refactor: keep js in separate dir (diff) | |
| download | caelestia-shell-1d942b07379e76b35f4de705b713720a9a8ed22e.tar.gz caelestia-shell-1d942b07379e76b35f4de705b713720a9a8ed22e.tar.bz2 caelestia-shell-1d942b07379e76b35f4de705b713720a9a8ed22e.zip | |
scrollbar: show gutter + enable scrolling
| -rw-r--r-- | widgets/StyledScrollBar.qml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/widgets/StyledScrollBar.qml b/widgets/StyledScrollBar.qml index 889a1c3..b341173 100644 --- a/widgets/StyledScrollBar.qml +++ b/widgets/StyledScrollBar.qml @@ -6,11 +6,25 @@ ScrollBar { id: root contentItem: StyledRect { + opacity: 0 radius: Appearance.rounding.full - color: Qt.alpha(Appearance.colours.m3secondary, 0.5) + color: Qt.alpha(Appearance.colours.m3secondary, 0.6) } background: StyledRect { implicitWidth: 10 + opacity: 0 + radius: Appearance.rounding.full + color: Qt.alpha(Appearance.colours.m3surfaceContainerLow, 0.4) + + MouseArea { + anchors.fill: parent + onWheel: event => { + if (event.angleDelta.y > 0) + root.decrease(); + else if (event.angleDelta.y < 0) + root.increase(); + } + } } } |