Base+VideoPlayer: Add an icon for video player

Co-authored-by: TreuKS <ks2225@protonmail.com>
This commit is contained in:
Slimey 2022-11-06 16:15:20 +00:00 committed by Brian Gianforcaro
parent d736b2c3c3
commit e00b16460c
Notes: sideshowbarker 2024-07-17 04:43:54 +09:00
5 changed files with 5 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

View File

@ -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)

View File

@ -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));
}
}

View File

@ -8,6 +8,7 @@
#include "LibVideo/MatroskaDemuxer.h"
#include <LibCore/ArgsParser.h>
#include <LibGUI/Application.h>
#include <LibGUI/Icon.h>
#include <LibGUI/Window.h>
#include <LibMain/Main.h>
@ -33,5 +34,7 @@ ErrorOr<int> 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();
}