1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

Applications: Use GUI::Icon::default_icon to set application icon

This commit is contained in:
Brendan Coles 2020-11-02 19:30:17 +00:00 committed by Andreas Kling
parent 6861cb8a23
commit 5ed7ca3627
14 changed files with 55 additions and 22 deletions

View file

@ -26,6 +26,7 @@
#include <LibGUI/AboutDialog.h>
#include <LibGUI/Application.h>
#include <LibGUI/Icon.h>
#include <LibGfx/Bitmap.h>
#include <stdio.h>
#include <sys/utsname.h>
@ -51,6 +52,7 @@ int main(int argc, char** argv)
unveil(nullptr, nullptr);
GUI::AboutDialog::show("SerenityOS", nullptr, nullptr, Gfx::Bitmap::load_from_file("/res/icons/16x16/ladybug.png"));
auto app_icon = GUI::Icon::default_icon("ladybug");
GUI::AboutDialog::show("SerenityOS", nullptr, nullptr, app_icon.bitmap_for_size(32));
return app->exec();
}