1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:57:45 +00:00

VideoPlayer: Add button and menu item to toggle fullscreen

Add a button to the bottom toolbar and a menu item to toggle fullscreen.
Also implement toggling fullscreen mode by double-clicking the video.
This commit is contained in:
timre13 2023-02-24 18:18:01 +01:00 committed by Linus Groh
parent 1379720742
commit d7f348ab50
5 changed files with 42 additions and 0 deletions

View file

@ -49,6 +49,8 @@ private:
void cycle_sizing_modes();
void toggle_fullscreen();
void event(Core::Event&) override;
DeprecatedString m_path;
@ -66,6 +68,8 @@ private:
RefPtr<GUI::Action> m_use_fast_seeking;
RefPtr<GUI::Action> m_toggle_fullscreen_action;
OwnPtr<Video::PlaybackManager> m_playback_manager;
bool m_was_playing_before_seek { false };