mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 05:25:13 +00:00
HelloWorld: Set window icon to app-hello-world.png
This commit is contained in:
parent
c288b499aa
commit
d61ea0da5f
Notes:
sideshowbarker
2024-07-19 03:01:24 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/d61ea0da5f7 Pull-request: https://github.com/SerenityOS/serenity/pull/3346
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
Reference in a new issue