diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-09 22:24:49 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-09 22:24:49 +1000 |
| commit | ed55afbcd87807b3a84910c51c1791c9425de1a6 (patch) | |
| tree | cb2a7ba08518e75b0a07b8ceafb419b5cfdb2aa9 /widgets | |
| parent | launcher: fix flatten anim (diff) | |
| download | caelestia-shell-ed55afbcd87807b3a84910c51c1791c9425de1a6.tar.gz caelestia-shell-ed55afbcd87807b3a84910c51c1791c9425de1a6.tar.bz2 caelestia-shell-ed55afbcd87807b3a84910c51c1791c9425de1a6.zip | |
launcher: better style
Diffstat (limited to 'widgets')
| -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 |