summaryrefslogtreecommitdiff
path: root/Applications/ThemeEditor
diff options
context:
space:
mode:
authorBrendan Coles <bcoles@gmail.com>2020-11-02 19:30:17 +0000
committerAndreas Kling <kling@serenityos.org>2020-11-02 21:06:17 +0100
commit5ed7ca3627717634728cd90ee34168e9b3dd95e2 (patch)
tree87ce2163ceda705bdcd8ef3b6957c863346632e0 /Applications/ThemeEditor
parent6861cb8a23ff0bce02edc03fabd098e8a92ecf53 (diff)
downloadserenity-5ed7ca3627717634728cd90ee34168e9b3dd95e2.zip
Applications: Use GUI::Icon::default_icon to set application icon
Diffstat (limited to 'Applications/ThemeEditor')
-rw-r--r--Applications/ThemeEditor/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Applications/ThemeEditor/main.cpp b/Applications/ThemeEditor/main.cpp
index 7b0d18a4a3..ec11048b15 100644
--- a/Applications/ThemeEditor/main.cpp
+++ b/Applications/ThemeEditor/main.cpp
@@ -29,6 +29,7 @@
#include <LibGUI/BoxLayout.h>
#include <LibGUI/ColorInput.h>
#include <LibGUI/ComboBox.h>
+#include <LibGUI/Icon.h>
#include <LibGUI/Model.h>
#include <LibGUI/Window.h>
@@ -67,6 +68,8 @@ int main(int argc, char** argv)
{
auto app = GUI::Application::construct(argc, argv);
+ auto app_icon = GUI::Icon::default_icon("app-theme-editor");
+
Gfx::Palette preview_palette = app->palette();
auto window = GUI::Window::construct();
@@ -109,6 +112,6 @@ int main(int argc, char** argv)
window->resize(480, 500);
window->show();
window->set_title("Theme Editor");
- window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-theme-editor.png"));
+ window->set_icon(app_icon.bitmap_for_size(16));
return app->exec();
}