mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 07:47:36 +00:00
LibGUI: GButton's caption should be drawn in the foreground color.
This commit is contained in:
parent
f6ca94605c
commit
74142d78c1
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…
Add table
Add a link
Reference in a new issue