mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37: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
|
@ -2080,6 +2080,7 @@ void WindowManager::invalidate_after_theme_or_font_change()
|
|||
for_each_window_stack([&](auto& window_stack) {
|
||||
window_stack.for_each_window([&](Window& window) {
|
||||
window.frame().theme_changed();
|
||||
window.menubar().font_changed(window.rect());
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
return IterationDecision::Continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue