diff --git a/Base/res/icons/16x16/app-video-player.png b/Base/res/icons/16x16/app-video-player.png new file mode 100644 index 00000000000..c7ba87be6e8 Binary files /dev/null and b/Base/res/icons/16x16/app-video-player.png differ diff --git a/Base/res/icons/32x32/app-video-player.png b/Base/res/icons/32x32/app-video-player.png new file mode 100644 index 00000000000..7b623f41dd0 Binary files /dev/null and b/Base/res/icons/32x32/app-video-player.png differ diff --git a/Userland/Applications/VideoPlayer/CMakeLists.txt b/Userland/Applications/VideoPlayer/CMakeLists.txt index e4984e35ce1..ab6d043e173 100644 --- a/Userland/Applications/VideoPlayer/CMakeLists.txt +++ b/Userland/Applications/VideoPlayer/CMakeLists.txt @@ -10,5 +10,5 @@ set(SOURCES VideoPlayerWidget.cpp ) -serenity_bin(VideoPlayer) +serenity_app(VideoPlayer ICON app-video-player) target_link_libraries(VideoPlayer PRIVATE LibVideo LibAudio LibCore LibGfx LibGUI LibMain) diff --git a/Userland/Applications/VideoPlayer/VideoPlayerWidget.cpp b/Userland/Applications/VideoPlayer/VideoPlayerWidget.cpp index 6277892f0c8..11459487776 100644 --- a/Userland/Applications/VideoPlayer/VideoPlayerWidget.cpp +++ b/Userland/Applications/VideoPlayer/VideoPlayerWidget.cpp @@ -215,7 +215,7 @@ void VideoPlayerWidget::initialize_menubar(GUI::Window& window) })); auto& help_menu = window.add_menu("&Help"); - help_menu.add_action(GUI::CommonActions::make_about_action("Video Player", GUI::Icon::default_icon("window"sv), &window)); + help_menu.add_action(GUI::CommonActions::make_about_action("Video Player", GUI::Icon::default_icon("app-video-player"sv), &window)); } } diff --git a/Userland/Applications/VideoPlayer/main.cpp b/Userland/Applications/VideoPlayer/main.cpp index de3dc23be28..07f8d670975 100644 --- a/Userland/Applications/VideoPlayer/main.cpp +++ b/Userland/Applications/VideoPlayer/main.cpp @@ -8,6 +8,7 @@ #include "LibVideo/MatroskaDemuxer.h" #include #include +#include #include #include @@ -33,5 +34,7 @@ ErrorOr serenity_main(Main::Arguments arguments) main_widget->open_file(filename); window->show(); + window->set_icon(GUI::Icon::default_icon("app-video-player"sv).bitmap_for_size(16)); + return app->exec(); }