blob: b341173efb7fc077f33423ce0ee61c9a582632e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import "root:/config"
import QtQuick
import QtQuick.Controls
ScrollBar {
id: root
contentItem: StyledRect {
opacity: 0
radius: Appearance.rounding.full
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();
}
}
}
}
|