summaryrefslogtreecommitdiff
path: root/Applications/SoundPlayer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/SoundPlayer/main.cpp')
-rw-r--r--Applications/SoundPlayer/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp
index 7b249d1ed7..8948f8ef48 100644
--- a/Applications/SoundPlayer/main.cpp
+++ b/Applications/SoundPlayer/main.cpp
@@ -58,11 +58,13 @@ int main(int argc, char** argv)
return 1;
}
+ auto app_icon = GUI::Icon::default_icon("app-sound-player");
+
auto window = GUI::Window::construct();
window->set_title("SoundPlayer");
window->set_resizable(false);
window->resize(350, 140);
- window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-sound-player.png"));
+ window->set_icon(app_icon.bitmap_for_size(16));
auto menubar = GUI::MenuBar::construct();
auto& app_menu = menubar->add_menu("SoundPlayer");
@@ -100,7 +102,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("SoundPlayer", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-sound-player.png"), window);
+ GUI::AboutDialog::show("SoundPlayer", app_icon.bitmap_for_size(32), window);
}));
app->set_menubar(move(menubar));