diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-22 00:19:53 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-22 00:21:03 +0100 |
commit | 7c0a185970b7d1053eeef464ec81f8490717587d (patch) | |
tree | 7fd8b88cae98087d9cad43e667267a3f4b0c52a3 /Applications/About/main.cpp | |
parent | c2a38c86cfb2f7c35b8f0a860ca43c717dda0153 (diff) | |
download | serenity-7c0a185970b7d1053eeef464ec81f8490717587d.zip |
Use the PNG loader for all images, and get rid of the .rgb files.
Diffstat (limited to 'Applications/About/main.cpp')
-rw-r--r-- | Applications/About/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Applications/About/main.cpp b/Applications/About/main.cpp index 045b02681d..eb360e2d83 100644 --- a/Applications/About/main.cpp +++ b/Applications/About/main.cpp @@ -11,7 +11,7 @@ int main(int argc, char** argv) auto* window = new GWindow; window->set_title("About Serenity"); - Rect window_rect { 0, 0, 240, 120 }; + Rect window_rect { 0, 0, 240, 150 }; window_rect.center_within({ 0, 0, 1024, 768 }); window->set_rect(window_rect); window->set_should_exit_event_loop_on_close(true); @@ -24,9 +24,9 @@ int main(int argc, char** argv) widget->layout()->set_spacing(8); auto* icon_label = new GLabel(widget); - icon_label->set_icon(GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/Serenity.rgb", { 32, 32 })); + icon_label->set_icon(GraphicsBitmap::load_from_file("/res/icons/serenity.png")); icon_label->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed); - icon_label->set_preferred_size({ 32, 32 }); + icon_label->set_preferred_size(icon_label->icon()->size()); auto* label = new GLabel(widget); label->set_font(Font::default_bold_font()); |