diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/QuickMedia.hpp | 1 | ||||
-rw-r--r-- | include/SearchBar.hpp | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 90ceddd..5010025 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -33,6 +33,7 @@ namespace QuickMedia { sf::Font font; Body *body; Plugin *current_plugin; + sf::Texture plugin_logo; std::unique_ptr<SearchBar> search_bar; Page current_page; // TODO: Combine these 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 <SFML/Graphics/Font.hpp> #include <SFML/Graphics/Text.hpp> #include <SFML/Graphics/RectangleShape.hpp> +#include <SFML/Graphics/Sprite.hpp> #include <functional> 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 |