From 126be42cfa75f27cc2fa056892b1e2cb7dc093d9 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 21 Apr 2025 09:05:23 -0400 Subject: [PATCH] LibWeb: Paint scrollbar outlines with anti-aliasing This gives the scrollbar a much less jagged appearance. --- Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp b/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp index 5847f2d7800..8b8f5549446 100644 --- a/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp +++ b/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp @@ -1008,6 +1008,7 @@ void DisplayListPlayerSkia::paint_scrollbar(PaintScrollBar const& command) SkPaint stroke_paint; stroke_paint.setStroke(true); stroke_paint.setStrokeWidth(1); + stroke_paint.setAntiAlias(true); stroke_paint.setColor(to_skia_color(stroke_color)); canvas.drawRRect(rrect, stroke_paint); }