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. :^)
This commit is contained in:
parent
a4992b5ece
commit
d4d8d9ea0b
Notes:
sideshowbarker
2024-07-18 20:34:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d4d8d9ea0b9
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue