diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-24 01:36:11 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-24 01:36:11 +0200 |
commit | e5d323cb063cd5762a6945439028c1ee7756aa45 (patch) | |
tree | c7f4184d8475ffdb781dba867ea29a1869af0713 /src | |
parent | 35508a1c737056c4ff821d1d5c40bea4715dffc8 (diff) |
Remove tab dropshadows
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 21 | ||||
-rw-r--r-- | src/SearchBar.cpp | 5 |
2 files changed, 3 insertions, 23 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 295749f..09c6e01 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1075,9 +1075,6 @@ namespace QuickMedia { const float tab_spacer_height = 0.0f; - sf::RectangleShape tab_drop_shadow; - tab_drop_shadow.setFillColor(sf::Color(23, 25, 27)); - sf::RoundedRectangleShape tab_background(sf::Vector2f(1.0f, 1.0f), 10.0f, 10); tab_background.setFillColor(tab_selected_color); @@ -1210,10 +1207,6 @@ namespace QuickMedia { window.draw(*tab.text); ++i; } - - tab_drop_shadow.setSize(sf::Vector2f(window_size.x, 5.0f)); - tab_drop_shadow.setPosition(0.0f, std::floor(tab_vertical_offset + tab_height)); - window.draw(tab_drop_shadow); } if(tabs[selected_tab].body) search_bar->draw(window, false); @@ -1846,9 +1839,6 @@ namespace QuickMedia { bool redraw = true; sf::Event event; - sf::RectangleShape tab_drop_shadow; - tab_drop_shadow.setFillColor(sf::Color(23, 25, 27)); - sf::RoundedRectangleShape tab_background(sf::Vector2f(1.0f, 1.0f), 10.0f, 10); tab_background.setFillColor(tab_selected_color); @@ -1932,10 +1922,6 @@ namespace QuickMedia { ++i; } - tab_drop_shadow.setSize(sf::Vector2f(window_size.x, 5.0f)); - tab_drop_shadow.setPosition(0.0f, std::floor(tab_vertical_offset + tab_height)); - window.draw(tab_drop_shadow); - search_bar->draw(window, false); window.display(); } @@ -3327,9 +3313,6 @@ namespace QuickMedia { bool redraw = true; sf::Event event; - sf::RectangleShape tab_drop_shadow; - tab_drop_shadow.setFillColor(sf::Color(23, 25, 27)); - sf::RoundedRectangleShape tab_background(sf::Vector2f(1.0f, 1.0f), 10.0f, 10); tab_background.setFillColor(tab_selected_color); @@ -3460,10 +3443,6 @@ namespace QuickMedia { ++i; } - tab_drop_shadow.setSize(sf::Vector2f(window_size.x, 5.0f)); - tab_drop_shadow.setPosition(0.0f, std::floor(tab_vertical_offset + tab_height)); - window.draw(tab_drop_shadow); - chat_input.draw(window, false); window.display(); } diff --git a/src/SearchBar.cpp b/src/SearchBar.cpp index 5abd970..ad5c298 100644 --- a/src/SearchBar.cpp +++ b/src/SearchBar.cpp @@ -52,8 +52,9 @@ namespace QuickMedia { sf::Vector2u window_size = window.getSize(); onWindowResize(sf::Vector2f(window_size.x, window_size.y)); } - if(draw_shadow) - window.draw(background_shadow); + (void)draw_shadow; + //if(draw_shadow) + // window.draw(background_shadow); //window.draw(shade); window.draw(background); // TODO: Render starting from the character after text length |