summaryrefslogtreecommitdiff
path: root/Applications/PixelPaint/main.cpp
diff options
context:
space:
mode:
authorHüseyin ASLITÜRK <asliturk@hotmail.com>2020-06-04 13:30:05 +0300
committerAndreas Kling <kling@serenityos.org>2020-06-04 12:34:31 +0200
commitd315281d565744acea33fc5dadffc7f75ef8e173 (patch)
tree55039a260ef553fd83ecc51bf69e08d686730967 /Applications/PixelPaint/main.cpp
parent9e829a198c9750b0ad1c9f0e7d0fd899e5071d99 (diff)
downloadserenity-d315281d565744acea33fc5dadffc7f75ef8e173.zip
PixelPaint: Use new app-pixel-paint.png for app icon
Diffstat (limited to 'Applications/PixelPaint/main.cpp')
-rw-r--r--Applications/PixelPaint/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Applications/PixelPaint/main.cpp b/Applications/PixelPaint/main.cpp
index e44c642a3a..2e3b2fec10 100644
--- a/Applications/PixelPaint/main.cpp
+++ b/Applications/PixelPaint/main.cpp
@@ -37,6 +37,7 @@
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/FilePicker.h>
+#include <LibGUI/Icon.h>
#include <LibGUI/Menu.h>
#include <LibGUI/MenuBar.h>
#include <LibGUI/MessageBox.h>
@@ -59,10 +60,12 @@ int main(int argc, char** argv)
return 1;
}
+ auto app_icon = GUI::Icon::default_icon("app-pixel-paint");
+
auto window = GUI::Window::construct();
window->set_title("PixelPaint");
window->set_rect(40, 100, 950, 570);
- window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-paintbrush.png"));
+ window->set_icon(app_icon.bitmap_for_size(16));
auto& horizontal_container = window->set_main_widget<GUI::Widget>();
horizontal_container.set_layout<GUI::HorizontalBoxLayout>();
@@ -190,7 +193,7 @@ int main(int argc, char** argv)
auto& help_menu = menubar->add_menu("Help");
help_menu.add_action(GUI::Action::create("About", [&](auto&) {
- GUI::AboutDialog::show("PixelPaint", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-paintbrush.png"), window);
+ GUI::AboutDialog::show("PixelPaint", app_icon.bitmap_for_size(32), window);
}));
app.set_menubar(move(menubar));