mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 19:10:26 +00:00
LibGUI: GButton's caption should be drawn in the foreground color.
This commit is contained in:
parent
f6ca94605c
commit
74142d78c1
Notes:
sideshowbarker
2024-07-19 14:48:31 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/74142d78c1b
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ void GButton::paint_event(GPaintEvent& event)
|
|||
if (m_icon)
|
||||
painter.blit(icon_location, *m_icon, m_icon->rect());
|
||||
auto& font = (m_checkable && m_checked) ? Font::default_bold_font() : this->font();
|
||||
painter.draw_text(content_rect, m_caption, font, text_alignment(), Color::Black, TextElision::Right);
|
||||
painter.draw_text(content_rect, m_caption, font, text_alignment(), foreground_color(), TextElision::Right);
|
||||
}
|
||||
|
||||
void GButton::mousemove_event(GMouseEvent& event)
|
||||
|
|
Loading…
Reference in a new issue