mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Base+VideoPlayer: Add an icon for video player
Co-authored-by: TreuKS <ks2225@protonmail.com>
This commit is contained in:
parent
d736b2c3c3
commit
e00b16460c
Notes:
sideshowbarker
2024-07-17 04:43:54 +09:00
Author: https://github.com/sl1m3yy Commit: https://github.com/SerenityOS/serenity/commit/e00b16460c Pull-request: https://github.com/SerenityOS/serenity/pull/15962
5 changed files with 5 additions and 2 deletions
BIN
Base/res/icons/16x16/app-video-player.png
Normal file
BIN
Base/res/icons/16x16/app-video-player.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 254 B |
BIN
Base/res/icons/32x32/app-video-player.png
Normal file
BIN
Base/res/icons/32x32/app-video-player.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 478 B |
|
@ -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)
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue