aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-10 20:40:17 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-10 20:40:17 +0200
commit6f11b42b7015646bcdc5f8bbec7da61e76655861 (patch)
tree364f9bbe02a9f8806a2640f36ebbf8a1da70fdb8 /include
parent901edef180648ce9c76ec4f73005da6498f57cf0 (diff)
Add ctrl+r keybind to show related videos menu
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp5
-rw-r--r--include/QuickMedia.hpp2
2 files changed, 4 insertions, 3 deletions
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