mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibGfx: Add a Gfx::TextAlignment parameter to Painter::draw_ui_text()
This commit is contained in:
parent
b7a25bfaac
commit
2b9bc605d2
Notes:
sideshowbarker
2024-07-18 20:37:44 +09:00
Author: https://github.com/awesomekling
Commit: 2b9bc605d2
3 changed files with 5 additions and 5 deletions
|
@ -317,7 +317,7 @@ void WindowFrame::paint_menubar(Gfx::Painter& painter)
|
|||
if (paint_as_pressed || paint_as_hovered) {
|
||||
Gfx::StylePainter::paint_button(painter, menu.rect_in_window_menubar(), palette, Gfx::ButtonStyle::CoolBar, paint_as_pressed, paint_as_hovered);
|
||||
}
|
||||
painter.draw_ui_text(text_rect, menu.name(), font, text_color);
|
||||
painter.draw_ui_text(text_rect, menu.name(), font, Gfx::TextAlignment::Center, text_color);
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue