diff options
Diffstat (limited to 'widgets/StyledScrollBar.qml')
| -rw-r--r-- | widgets/StyledScrollBar.qml | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/widgets/StyledScrollBar.qml b/widgets/StyledScrollBar.qml index a52bbd2..c655536 100644 --- a/widgets/StyledScrollBar.qml +++ b/widgets/StyledScrollBar.qml @@ -7,7 +7,8 @@ ScrollBar { id: root contentItem: StyledRect { - opacity: root.pressed ? 0.8 : root.policy === ScrollBar.AlwaysOn || (root.active && root.size < 1) ? 0.6 : 0 + implicitWidth: 6 + opacity: root.pressed ? 1 : root.policy === ScrollBar.AlwaysOn || (root.active && root.size < 1) ? 0.8 : 0 radius: Appearance.rounding.full color: Colours.palette.m3secondary @@ -20,21 +21,6 @@ ScrollBar { } } - background: StyledRect { - implicitWidth: 10 - opacity: root.policy === ScrollBar.AlwaysOn || (root.active && root.size < 1) ? 0.4 : 0 - radius: Appearance.rounding.full - color: Colours.palette.m3surfaceContainerLow - - Behavior on opacity { - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } - } - } - MouseArea { z: -1 anchors.fill: parent |