summaryrefslogtreecommitdiff
path: root/Demos/Fire
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/Fire
parent3482b9b937aa29125e9585b76ad417c710d97aa3 (diff)
downloadserenity-27ead7e2c2107aded7910148808d11af9d68f26a.zip
Demos: Use GUI::Icon::default_icon to set application icon
Diffstat (limited to 'Demos/Fire')
-rw-r--r--Demos/Fire/Fire.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Demos/Fire/Fire.cpp b/Demos/Fire/Fire.cpp
index 3d1c486cc7..52b4d2167b 100644
--- a/Demos/Fire/Fire.cpp
+++ b/Demos/Fire/Fire.cpp
@@ -44,6 +44,7 @@
#include <LibCore/ElapsedTimer.h>
#include <LibGUI/Application.h>
+#include <LibGUI/Icon.h>
#include <LibGUI/Label.h>
#include <LibGUI/Painter.h>
#include <LibGUI/Widget.h>
@@ -229,7 +230,9 @@ int main(int argc, char** argv)
fire.set_stat_label(time);
window->show();
- window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-fire.png"));
+
+ auto app_icon = GUI::Icon::default_icon("app-fire");
+ window->set_icon(app_icon.bitmap_for_size(16));
return app->exec();
}