mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 16:49:54 +00:00
Services: Convert WindowFrame button bitmaps to themable PNGs
Custom buttons can now be set using TitleButtonIcons under the Paths group in themes. WindowFrame recognizes window-close.png, window-minimize.png, window-maximize.png and window-restore.png filenames.
This commit is contained in:
parent
41aacdf815
commit
c815fa7f47
Notes:
sideshowbarker
2024-07-19 04:26:12 +09:00
Author: https://github.com/thankyouverycool
Commit: c815fa7f47
Pull-request: https://github.com/SerenityOS/serenity/pull/2923
5 changed files with 75 additions and 92 deletions
|
@ -1392,6 +1392,7 @@ bool WindowManager::update_theme(String theme_path, String theme_name)
|
|||
}
|
||||
}
|
||||
window.frame().layout_buttons();
|
||||
window.frame().set_button_icons();
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
MenuManager::the().did_change_theme();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue