1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibGfx: Add painting transparency grids to StylePainter

This commit is contained in:
Tibor Nagy 2020-09-25 16:33:12 +02:00 committed by Andreas Kling
parent 7d83665635
commit 7ab04ea31a
4 changed files with 13 additions and 0 deletions

View file

@ -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());
}
}