mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGUI: AboutDialog now inherits the icon of its parent window
This commit is contained in:
parent
7a61ed4178
commit
317a0d666b
Notes:
sideshowbarker
2024-07-19 08:03:53 +09:00
Author: https://github.com/xTibor
Commit: 317a0d666b
Pull-request: https://github.com/SerenityOS/serenity/pull/1534
Reviewed-by: https://github.com/awesomekling
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ AboutDialog::AboutDialog(const StringView& name, const Gfx::Bitmap* icon, Window
|
|||
set_title(String::format("About %s", m_name.characters()));
|
||||
set_resizable(false);
|
||||
|
||||
if (parent_window)
|
||||
set_icon(parent_window->icon());
|
||||
|
||||
auto& widget = set_main_widget<Widget>();
|
||||
widget.set_fill_with_background_color(true);
|
||||
widget.set_layout<HorizontalBoxLayout>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue