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:
Andreas Kling 2020-05-28 11:45:01 +02:00
parent 5c35f3c9ba
commit 49f3323fa8
Notes: sideshowbarker 2024-07-19 06:02:43 +09:00

View file

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