aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-26 06:30:54 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-26 06:30:54 +0200
commit22aa3cb4f4722e9f73f5a4c8bba82e304e5a9205 (patch)
tree008aac0170be56889a4aba4d7cb2c0fecd24be0f /src/Body.cpp
parent74b18beed8651c4a7f6daa39102766676605cdc2 (diff)
Matrix: Add indicator when previous messages are being fetched
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp4
1 files changed, 2 insertions, 2 deletions
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);