mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +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
|
@ -24,5 +24,5 @@ void GLabel::paint_event(GPaintEvent& event)
|
|||
if (fill_with_background_color())
|
||||
painter.fill_rect({ 0, 0, width(), height() }, background_color());
|
||||
if (!text().is_empty())
|
||||
painter.draw_text({ 4, 4, width(), height() }, text(), Painter::TextAlignment::TopLeft, foreground_color());
|
||||
painter.draw_text({ 4, 4, width(), height() }, text(), TextAlignment::TopLeft, foreground_color());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue