1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +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:
thankyouverycool 2020-07-29 16:22:05 -04:00 committed by Andreas Kling
parent 41aacdf815
commit c815fa7f47
5 changed files with 75 additions and 92 deletions

View file

@ -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();