summaryrefslogtreecommitdiff
path: root/Demos/LibGfxDemo/main.cpp
diff options
context:
space:
mode:
authorBrendan Coles <bcoles@gmail.com>2020-10-31 21:23:42 +0000
committerAndreas Kling <kling@serenityos.org>2020-11-01 10:29:14 +0100
commit27ead7e2c2107aded7910148808d11af9d68f26a (patch)
tree828b5a1c9bc5c5952a6dec51be19d2c8ca83d973 /Demos/LibGfxDemo/main.cpp
parent3482b9b937aa29125e9585b76ad417c710d97aa3 (diff)
downloadserenity-27ead7e2c2107aded7910148808d11af9d68f26a.zip
Demos: Use GUI::Icon::default_icon to set application icon
Diffstat (limited to 'Demos/LibGfxDemo/main.cpp')
-rw-r--r--Demos/LibGfxDemo/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Demos/LibGfxDemo/main.cpp b/Demos/LibGfxDemo/main.cpp
index 07c6bc330a..d9ce949652 100644
--- a/Demos/LibGfxDemo/main.cpp
+++ b/Demos/LibGfxDemo/main.cpp
@@ -25,6 +25,7 @@
*/
#include <LibGUI/Application.h>
+#include <LibGUI/Icon.h>
#include <LibGUI/Painter.h>
#include <LibGUI/Widget.h>
#include <LibGUI/Window.h>
@@ -203,7 +204,9 @@ int main(int argc, char** argv)
window->set_title("LibGfx Demo");
window->set_resizable(false);
window->resize(WIDTH, HEIGHT);
- window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-libgfx-demo.png"));
+
+ auto app_icon = GUI::Icon::default_icon("app-libgfx-demo");
+ window->set_icon(app_icon.bitmap_for_size(16));
window->set_main_widget<Canvas>();
window->show();