aboutsummaryrefslogtreecommitdiff
path: root/src/Tabs.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-18 22:05:19 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-18 22:08:41 +0200
commitd123c41cd3ad4f0d55ae134be69e7ffd144dbb74 (patch)
treef46a8e6daea5b757f4b66363c64aea6269dd83a9 /src/Tabs.cpp
parentf6a39afa8bfd869ba661799897ac37e7d1ff7c34 (diff)
Add mention autocomplete
Diffstat (limited to 'src/Tabs.cpp')
-rw-r--r--src/Tabs.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Tabs.cpp b/src/Tabs.cpp
index 01e5d2d..b671262 100644
--- a/src/Tabs.cpp
+++ b/src/Tabs.cpp
@@ -72,9 +72,11 @@ namespace QuickMedia {
tab_background_width = std::floor(width_per_tab - tab_margin_x*2.0f);
background.set_size(sf::Vector2f(tab_background_width, tab_height));
- shade.setSize(sf::Vector2f(width, get_shade_height()));
- shade.setPosition(std::floor(pos.x), std::floor(pos.y));
- window.draw(shade);
+ if(shade_color != sf::Color::Transparent) {
+ shade.setSize(sf::Vector2f(width, get_shade_height()));
+ shade.setPosition(std::floor(pos.x), std::floor(pos.y));
+ window.draw(shade);
+ }
float scroll_fixed = scroll + (tab_offset * width_per_tab);