mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibGUI: Don't show big Buggie in app about dialogs
It was getting to crowded between two Buggies and the app icon.
This commit is contained in:
parent
5c35f3c9ba
commit
49f3323fa8
Notes:
sideshowbarker
2024-07-19 06:02:43 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/49f3323fa84
1 changed files with 7 additions and 5 deletions
|
@ -79,11 +79,13 @@ AboutDialog::AboutDialog(const StringView& name, const Gfx::Bitmap* icon, Window
|
|||
icon_label.set_preferred_size(32, 32);
|
||||
}
|
||||
|
||||
auto& buggie_label = left_container.add<Label>();
|
||||
buggie_label.set_icon(Gfx::Bitmap::load_from_file("/res/icons/buggie-about.png"));
|
||||
buggie_label.set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
|
||||
buggie_label.set_preferred_size(48, 104);
|
||||
buggie_label.set_tooltip("Buggie!");
|
||||
if (m_name == "SerenityOS") {
|
||||
auto& buggie_label = left_container.add<Label>();
|
||||
buggie_label.set_icon(Gfx::Bitmap::load_from_file("/res/icons/buggie-about.png"));
|
||||
buggie_label.set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
|
||||
buggie_label.set_preferred_size(48, 104);
|
||||
buggie_label.set_tooltip("Buggie!");
|
||||
}
|
||||
|
||||
auto& right_container = content_container.add<Widget>();
|
||||
right_container.set_layout<VerticalBoxLayout>();
|
||||
|
|
Loading…
Reference in a new issue