mirror of
https://github.com/RGBCube/serenity
synced 2025-07-04 18:27:35 +00:00
WindowServer: More work on menus.
This commit is contained in:
parent
443b043b49
commit
5f288014d4
11 changed files with 51 additions and 33 deletions
|
@ -37,9 +37,9 @@ void GButton::paint_event(GPaintEvent&)
|
|||
}
|
||||
if (m_icon) {
|
||||
painter.blit_with_alpha(icon_location, *m_icon, m_icon->rect());
|
||||
painter.draw_text(content_rect, caption(), Painter::TextAlignment::Center, Color::Black);
|
||||
painter.draw_text(content_rect, caption(), TextAlignment::Center, Color::Black);
|
||||
} else {
|
||||
painter.draw_text(content_rect, caption(), Painter::TextAlignment::Center, Color::Black);
|
||||
painter.draw_text(content_rect, caption(), TextAlignment::Center, Color::Black);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue