From 22aa3cb4f4722e9f73f5a4c8bba82e304e5a9205 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 26 Sep 2020 06:30:54 +0200 Subject: Matrix: Add indicator when previous messages are being fetched --- src/Body.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Body.cpp') diff --git a/src/Body.cpp b/src/Body.cpp index c849aea..b6b1540 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -82,7 +82,6 @@ namespace QuickMedia { thumbnail_resize_target_size.y = 119; thumbnail_fallback_size.x = 50.0f; thumbnail_fallback_size.y = 100.0f; - image_fallback.setSize(thumbnail_fallback_size); image_fallback.setFillColor(sf::Color::White); item_background.setFillColor(sf::Color(55, 60, 68)); } @@ -374,6 +373,7 @@ namespace QuickMedia { //item_background.setFillColor(front_color); //item_background.setOutlineThickness(1.0f); //item_background.setOutlineColor(sf::Color(13, 15, 17)); + image_fallback.setSize(thumbnail_fallback_size); item_background_shadow.setFillColor(line_seperator_color); int num_items = items.size(); @@ -553,7 +553,7 @@ namespace QuickMedia { window.draw(image); text_offset_x += image_padding_x + width_ratio * image_size.x; // We want the next image fallback to have the same size as the successful image rendering, because its likely the image fallback will have the same size (for example thumbnails on youtube) - image_fallback.setSize(sf::Vector2f(width_ratio * image_size.x, height_ratio * image_size.y)); + //image_fallback.setSize(sf::Vector2f(width_ratio * image_size.x, height_ratio * image_size.y)); } else if(!item->thumbnail_url.empty()) { image_fallback.setPosition(item_pos + sf::Vector2f(image_padding_x, padding_y)); window.draw(image_fallback); -- cgit v1.2.3