From d123c41cd3ad4f0d55ae134be69e7ffd144dbb74 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 18 May 2021 22:05:19 +0200 Subject: Add mention autocomplete --- src/Tabs.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Tabs.cpp') 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); -- cgit v1.2.3