From c17c4abb5b88d35f8a13cb2998be3df2a7ec3bbc Mon Sep 17 00:00:00 2001 From: nyne Date: Sun, 14 Sep 2025 18:43:11 +0800 Subject: [PATCH] Reduce size of scroll bar. --- lib/components/scroll.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/scroll.dart b/lib/components/scroll.dart index 7510c96..f42fac3 100644 --- a/lib/components/scroll.dart +++ b/lib/components/scroll.dart @@ -237,7 +237,7 @@ class _AppScrollBarState extends State { double viewHeight = 0; - final _scrollIndicatorSize = App.isDesktop ? 42.0 : 64.0; + final _scrollIndicatorSize = App.isDesktop ? 36.0 : 54.0; late final VerticalDragGestureRecognizer _dragGestureRecognizer; @@ -354,7 +354,7 @@ class _ScrollIndicatorPainter extends CustomPainter { Offset(size.width, 0), radius: Radius.circular(size.width), ); - canvas.drawShadow(path, shadowColor, 4, true); + canvas.drawShadow(path, shadowColor, 2, true); var backgroundPaint = Paint() ..color = backgroundColor ..style = PaintingStyle.fill;