summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSlimey <117548228+sl1m3yy@users.noreply.github.com>2022-11-06 16:15:20 +0000
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-11-06 22:27:22 -0800
commite00b16460ca06f913d4bf4414c5bdd0b300560d1 (patch)
tree23112c5ff8a171fa6fc94b30dd913d9c03842264 /Userland
parentd736b2c3c3d4a951921bcd6c9bce30c472f1d181 (diff)
downloadserenity-e00b16460ca06f913d4bf4414c5bdd0b300560d1.zip
Base+VideoPlayer: Add an icon for video player
Co-authored-by: TreuKS <ks2225@protonmail.com>
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/VideoPlayer/CMakeLists.txt2
-rw-r--r--Userland/Applications/VideoPlayer/VideoPlayerWidget.cpp2
-rw-r--r--Userland/Applications/VideoPlayer/main.cpp3
3 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Applications/VideoPlayer/CMakeLists.txt b/Userland/Applications/VideoPlayer/CMakeLists.txt
index e4984e35ce..ab6d043e17 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 6277892f0c..1145948777 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 de3dc23be2..07f8d67097 100644
--- a/Userland/Applications/VideoPlayer/main.cpp
+++ b/Userland/Applications/VideoPlayer/main.cpp
@@ -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();
}