From fe475d755534d3c97ac1030429a97477710d74e6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 10 Aug 2019 06:44:16 +0200 Subject: Change design, add logos --- include/SearchBar.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/SearchBar.hpp') diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index 0ddcac9..8ac8766 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include namespace QuickMedia { @@ -13,7 +14,7 @@ namespace QuickMedia { class SearchBar { public: - SearchBar(sf::Font &font); + SearchBar(sf::Font &font, sf::Texture &plugin_logo); void draw(sf::RenderWindow &window); void update(); void onWindowResize(const sf::Vector2f &window_size); @@ -29,8 +30,11 @@ namespace QuickMedia { sf::Text text; sf::RectangleShape background; sf::RectangleShape background_shadow; + sf::RectangleShape shade; + sf::Sprite plugin_logo_sprite; bool show_placeholder; bool updated_search; + bool draw_logo; sf::Clock time_since_search_update; }; } \ No newline at end of file -- cgit v1.2.3