mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Paint scrollbar outlines with anti-aliasing
This gives the scrollbar a much less jagged appearance.
This commit is contained in:
parent
843468dbf8
commit
126be42cfa
Notes:
github-actions[bot]
2025-04-22 15:30:25 +00:00
Author: https://github.com/trflynn89
Commit: 126be42cfa
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4417
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue