mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:27:44 +00:00
LibGfx: Add painting transparency grids to StylePainter
This commit is contained in:
parent
7d83665635
commit
7ab04ea31a
4 changed files with 13 additions and 0 deletions
|
@ -380,4 +380,9 @@ void ClassicStylePainter::paint_check_box(Painter& painter, const IntRect& rect,
|
|||
}
|
||||
}
|
||||
|
||||
void ClassicStylePainter::paint_transparency_grid(Painter& painter, const IntRect& rect, const Palette& palette)
|
||||
{
|
||||
painter.fill_rect_with_checkerboard(rect, { 8, 8 }, palette.base().darkened(0.9), palette.base());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue