diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-19 03:12:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-19 03:12:31 +0200 |
commit | fd4e8cdc9449dbb0224a1a41ef0561f50012d405 (patch) | |
tree | ae9b2f29c0a7cf1f64a28d6898350fc7bddb718a /src/QuickMedia.cpp | |
parent | 5c1b4fb3198ec398e8b292effe5ca84d280939f3 (diff) |
Add pagination to ph and mangatown
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 0ab78a1..625a426 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -284,6 +284,7 @@ namespace QuickMedia { auto body_item = BodyItem::create(recommended_title_json.asString()); body_item->url = "https://www.youtube.com/watch?v=" + recommended_item_id; body_item->thumbnail_url = "https://img.youtube.com/vi/" + recommended_item_id + "/hqdefault.jpg"; + body_item->thumbnail_size = sf::Vector2i(158, 119); body_items.push_back(std::move(body_item)); // We dont want more than 150 recommendations @@ -753,6 +754,7 @@ namespace QuickMedia { body_item->url = "https://www.youtube.com/watch?v=" + video_id_str; body_item->thumbnail_url = "https://img.youtube.com/vi/" + video_id_str + "/hqdefault.jpg"; body_item->set_description(timestamp_to_relative_time_str(std::max(0l, time_now - timestamp.asInt64()))); + body_item->thumbnail_size = sf::Vector2i(158, 119); body_items.push_back(std::move(body_item)); } @@ -2943,8 +2945,6 @@ namespace QuickMedia { messages_tab.body->draw_thumbnails = true; messages_tab.body->thumbnail_resize_target_size.x = 600; messages_tab.body->thumbnail_resize_target_size.y = 337; - messages_tab.body->thumbnail_fallback_size.x = 32; - messages_tab.body->thumbnail_fallback_size.y = 32; messages_tab.body->thumbnail_mask_shader = &circle_mask_shader; //messages_tab.body->line_seperator_color = sf::Color::Transparent; messages_tab.text = sf::Text("Messages", *font, tab_text_size); @@ -2955,8 +2955,6 @@ namespace QuickMedia { rooms_tab.body = std::make_unique<Body>(this, font.get(), bold_font.get(), cjk_font.get()); rooms_tab.body->draw_thumbnails = true; //rooms_tab.body->line_seperator_color = sf::Color::Transparent; - rooms_tab.body->thumbnail_fallback_size.x = 32; - rooms_tab.body->thumbnail_fallback_size.y = 32; rooms_tab.body->thumbnail_mask_shader = &circle_mask_shader; rooms_tab.text = sf::Text("Rooms", *font, tab_text_size); tabs.push_back(std::move(rooms_tab)); |