1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

WindowServer+LibGfx: Make menubar menus slightly larger

Also make sure the left/right padding is equally large.
This commit is contained in:
Andreas Kling 2021-03-26 14:24:04 +01:00
parent 3020f5efd9
commit 4b6fba1e4c
5 changed files with 9 additions and 16 deletions

View file

@ -311,7 +311,7 @@ void WindowFrame::paint_menubar(Gfx::Painter& painter)
painter.translate(menubar_rect.location());
m_window.menubar()->for_each_menu([&](Menu& menu) {
auto text_rect = menu.text_rect_in_window_menubar();
auto text_rect = menu.rect_in_window_menubar();
Color text_color = palette.window_text();
if (MenuManager::the().is_open(menu))
text_rect.move_by(1, 1);
@ -324,7 +324,7 @@ void WindowFrame::paint_menubar(Gfx::Painter& painter)
text_rect,
menu.name(),
font,
Gfx::TextAlignment::CenterLeft,
Gfx::TextAlignment::Center,
text_color);
return IterationDecision::Continue;
});