mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:47:35 +00:00
WindowServer: Update menu buttons' rects on font change
Prior to this change, after changing the system font, the menu rects stayed the same, making the menu bar look a bit cramped on larger fonts.
This commit is contained in:
parent
fe47e66438
commit
a5e149c012
2 changed files with 8 additions and 0 deletions
|
@ -56,6 +56,13 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void font_changed(Gfx::IntRect window_rect)
|
||||
{
|
||||
m_next_menu_location = { 0, 0 };
|
||||
for (auto& menu : m_menus)
|
||||
layout_menu(menu, window_rect);
|
||||
}
|
||||
|
||||
private:
|
||||
void layout_menu(Menu&, Gfx::IntRect window_rect);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue