diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-11 01:11:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-11 01:11:56 +0200 |
commit | d4d8d9ea0b9cb603d75f6def32d0b9c12379f0f6 (patch) | |
tree | 8270ce551983738a15e046f1844c1b9047133a12 /Userland | |
parent | a4992b5eceb26fb0c137ad6ba1fbef8460b173ca (diff) | |
download | serenity-d4d8d9ea0b9cb603d75f6def32d0b9c12379f0f6.zip |
LibGfx: Make sure draw_ui_text() paints underlines with text color
We shouldn't hard-code black here, then we won't respect the system
theme colors. :^)
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGfx/Painter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp index c2d3c8c316..d17addb5d0 100644 --- a/Userland/Libraries/LibGfx/Painter.cpp +++ b/Userland/Libraries/LibGfx/Painter.cpp @@ -1844,7 +1844,7 @@ void Gfx::Painter::draw_ui_text(const Gfx::IntRect& rect, const StringView& text int y = text_rect.bottom() + 1; int x1 = text_rect.left() + width; int x2 = x1 + font.glyph_or_emoji_width(*it); - draw_line({ x1, y }, { x2, y }, Color::Black); + draw_line({ x1, y }, { x2, y }, color); break; } width += font.glyph_or_emoji_width(*it) + font.glyph_spacing(); |