From 27ead7e2c2107aded7910148808d11af9d68f26a Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sat, 31 Oct 2020 21:23:42 +0000 Subject: Demos: Use GUI::Icon::default_icon to set application icon --- Demos/Cube/Cube.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Demos/Cube') diff --git a/Demos/Cube/Cube.cpp b/Demos/Cube/Cube.cpp index 253e37ff97..cdb2f6c484 100644 --- a/Demos/Cube/Cube.cpp +++ b/Demos/Cube/Cube.cpp @@ -26,6 +26,7 @@ #include #include +#include #include #include #include @@ -206,7 +207,9 @@ int main(int argc, char** argv) cube.set_stat_label(time); window->show(); - window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-cube.png")); + + auto app_icon = GUI::Icon::default_icon("app-cube"); + window->set_icon(app_icon.bitmap_for_size(16)); return app->exec(); } -- cgit v1.2.3