From 6f11b42b7015646bcdc5f8bbec7da61e76655861 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 10 Sep 2020 20:40:17 +0200 Subject: Add ctrl+r keybind to show related videos menu --- include/Body.hpp | 5 +++-- include/QuickMedia.hpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/Body.hpp b/include/Body.hpp index 86b6984..a3058a6 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -55,7 +55,7 @@ namespace QuickMedia { class Body { public: - Body(Program *program, sf::Font &font, sf::Font &bold_font); + Body(Program *program, sf::Font *font, sf::Font *bold_font); // Select previous item, ignoring invisible items void select_previous_item(); @@ -82,7 +82,8 @@ namespace QuickMedia { bool no_items_visible() const; - sf::Text title_text; + sf::Font *font; + sf::Font *bold_font; sf::Text progress_text; sf::Text author_text; sf::Text replies_text; diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index e4855f9..27863cc 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -99,6 +99,6 @@ namespace QuickMedia { bool use_system_mpv_config = false; // TODO: Save this to config file when switching modes ImageViewMode image_view_mode = ImageViewMode::SINGLE; - BodyItems related_media; + Body *related_media_body; }; } \ No newline at end of file -- cgit v1.2.3