mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
HelloWorld: Set window icon to app-hello-world.png
This commit is contained in:
parent
c288b499aa
commit
d61ea0da5f
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ int main(int argc, char** argv)
|
|||
auto window = GUI::Window::construct();
|
||||
window->resize(240, 160);
|
||||
window->set_title("Hello World!");
|
||||
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-hello-world.png"));
|
||||
|
||||
auto& main_widget = window->set_main_widget<GUI::Widget>();
|
||||
main_widget.set_fill_with_background_color(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue