diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-19 16:13:55 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-19 16:13:55 +0200 |
commit | 5465c09cd108e37720dbad139de98bdcf5dfe8bf (patch) | |
tree | 47db7d4a488bca6711fe9a8cbc47f53a74f3fc67 /src/SearchBar.cpp | |
parent | 7f0bdeddb79c308ab082a124441f1d69d665dbfc (diff) |
Move tab code to separate class, fix upload time missing for certain manga plugins, fix touch room click messed up
Diffstat (limited to 'src/SearchBar.cpp')
-rw-r--r-- | src/SearchBar.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp index 63515bd..fa119a6 100644 --- a/src/SearchBar.cpp +++ b/src/SearchBar.cpp @@ -167,10 +167,13 @@ namespace QuickMedia { sf::Vector2f texture_size_f(texture_size.x, texture_size.y); sf::Vector2f new_size = wrap_to_size(texture_size_f, sf::Vector2f(200.0f, one_line_height)); plugin_logo_sprite.setScale(get_ratio(texture_size_f, new_size)); - plugin_logo_sprite.setPosition(25.0f, padding_top + vertical_pos + rect_height * 0.5f - plugin_logo_sprite.getTexture()->getSize().y * plugin_logo_sprite.getScale().y * 0.5f); - offset_x = 25.0f + new_size.x + 25.0f; + plugin_logo_sprite.setPosition(10.0f, padding_top + vertical_pos + rect_height * 0.5f - plugin_logo_sprite.getTexture()->getSize().y * plugin_logo_sprite.getScale().y * 0.5f); + offset_x = 10.0f + new_size.x + 10.0f; + } else { + offset_x = 10.0f; } - const float width = std::floor(window_size.x - offset_x - 25.0f); + + const float width = std::floor(window_size.x - offset_x - 10.0f); background.setSize(sf::Vector2f(width, rect_height)); shade.setSize(sf::Vector2f(window_size.x, padding_top + rect_height + padding_bottom)); |