diff options
Diffstat (limited to 'include/SearchBar.hpp')
-rw-r--r-- | include/SearchBar.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index ac15a90..b4abd77 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -5,6 +5,7 @@ #include <SFML/Graphics/Text.hpp> #include <SFML/Graphics/RectangleShape.hpp> #include <SFML/Graphics/Sprite.hpp> +#include "../external/RoundedRectangleShape.hpp" #include <functional> namespace QuickMedia { @@ -28,6 +29,7 @@ namespace QuickMedia { void set_to_autocomplete(); void set_autocomplete_text(const std::string &text); void set_vertical_position(float vertical_pos); + void set_background_color(sf::Color color); float getBottom() const; float getBottomWithoutShadow() const; @@ -47,7 +49,7 @@ namespace QuickMedia { private: sf::Text text; sf::Text autocomplete_text; - sf::RectangleShape background; + sf::RoundedRectangleShape background; sf::RectangleShape background_shadow; sf::RectangleShape shade; sf::RectangleShape caret; |