From ed55afbcd87807b3a84910c51c1791c9425de1a6 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 9 May 2025 22:24:49 +1000 Subject: launcher: better style --- widgets/StyledScrollBar.qml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'widgets') 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 -- cgit v1.2.3-freya