mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +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
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
|
VideoPlayerWidget.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
serenity_bin(VideoPlayer)
|
serenity_app(VideoPlayer ICON app-video-player)
|
||||||
target_link_libraries(VideoPlayer PRIVATE LibVideo LibAudio LibCore LibGfx LibGUI LibMain)
|
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");
|
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 "LibVideo/MatroskaDemuxer.h"
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibGUI/Application.h>
|
#include <LibGUI/Application.h>
|
||||||
|
#include <LibGUI/Icon.h>
|
||||||
#include <LibGUI/Window.h>
|
#include <LibGUI/Window.h>
|
||||||
#include <LibMain/Main.h>
|
#include <LibMain/Main.h>
|
||||||
|
|
||||||
|
@ -33,5 +34,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
main_widget->open_file(filename);
|
main_widget->open_file(filename);
|
||||||
|
|
||||||
window->show();
|
window->show();
|
||||||
|
window->set_icon(GUI::Icon::default_icon("app-video-player"sv).bitmap_for_size(16));
|
||||||
|
|
||||||
return app->exec();
|
return app->exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue