diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-10 01:00:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-10 01:02:06 +0200 |
commit | 9e74793ce2a6993016306a45e37bb91c20a0d9bd (patch) | |
tree | d81241977c87d89d5f8ae6a142645433a2d4a6a5 /Libraries/LibGfx/Painter.h | |
parent | ac701cb589496f58ce89ebacf34013b63f763cb8 (diff) | |
download | serenity-9e74793ce2a6993016306a45e37bb91c20a0d9bd.zip |
LibGUI+LibGfx: Paint scollbar tracks with a dithered pattern
Instead of a solid color, we now paint the track/gutter of scrollbars
using a 2-color dither pattern for a pleasant millennium feel. :^)
Diffstat (limited to 'Libraries/LibGfx/Painter.h')
-rw-r--r-- | Libraries/LibGfx/Painter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGfx/Painter.h b/Libraries/LibGfx/Painter.h index 87ecf8b045..d02535e608 100644 --- a/Libraries/LibGfx/Painter.h +++ b/Libraries/LibGfx/Painter.h @@ -45,6 +45,7 @@ public: ~Painter(); void clear_rect(const Rect&, Color); void fill_rect(const Rect&, Color); + void fill_rect_with_dither_pattern(const Rect&, Color, Color); void fill_rect_with_checkerboard(const Rect&, const Size&, Color color_dark, Color color_light); void fill_rect_with_gradient(Orientation, const Rect&, Color gradient_start, Color gradient_end); void fill_rect_with_gradient(const Rect&, Color gradient_start, Color gradient_end); |