diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-01 18:16:10 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-01 18:50:28 +0200 |
commit | 517cf65c998b63eb9c9c40e5128e896569e8a4ab (patch) | |
tree | 7951c03b776433e48b6d7fdd722d02b915acced1 | |
parent | db93db8100d87ea063c1f4b686cf4368d7990937 (diff) | |
download | serenity-517cf65c998b63eb9c9c40e5128e896569e8a4ab.zip |
LibGUI: Tweak AboutDialog a bit, remove big Buggie from system variant
One Buggie is enough, it looks a lot less confused without the big one.
Also make the dialog a bit shorter since there was a lot of dead space.
-rw-r--r-- | Libraries/LibGUI/AboutDialog.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Libraries/LibGUI/AboutDialog.cpp b/Libraries/LibGUI/AboutDialog.cpp index c9897cf1cf..63eed2d2b8 100644 --- a/Libraries/LibGUI/AboutDialog.cpp +++ b/Libraries/LibGUI/AboutDialog.cpp @@ -40,7 +40,7 @@ AboutDialog::AboutDialog(const StringView& name, const Gfx::Bitmap* icon, Window , m_name(name) , m_icon(icon) { - resize(413, 315); + resize(413, 205); set_title(String::format("About %s", m_name.characters())); set_resizable(false); @@ -63,7 +63,7 @@ AboutDialog::AboutDialog(const StringView& name, const Gfx::Bitmap* icon, Window auto& left_container = content_container.add<Widget>(); left_container.set_size_policy(SizePolicy::Fixed, SizePolicy::Fill); - left_container.set_preferred_size(100, 0); + left_container.set_preferred_size(60, 0); left_container.set_layout<VerticalBoxLayout>(); left_container.layout()->set_margins({ 0, 12, 0, 0 }); @@ -79,14 +79,6 @@ AboutDialog::AboutDialog(const StringView& name, const Gfx::Bitmap* icon, Window icon_label.set_preferred_size(32, 32); } - 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>(); right_container.layout()->set_margins({ 0, 12, 12, 8 }); @@ -104,7 +96,7 @@ AboutDialog::AboutDialog(const StringView& name, const Gfx::Bitmap* icon, Window if (m_name != "SerenityOS") make_label("SerenityOS"); make_label(version_string()); - make_label("\xC2\xA9 The SerenityOS developers"); + make_label("Copyright \xC2\xA9 the SerenityOS developers, 2018-2020"); right_container.layout()->add_spacer(); |