aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-10 06:44:16 +0200
committerdec05eba <dec05eba@protonmail.com>2019-08-10 06:44:19 +0200
commitfe475d755534d3c97ac1030429a97477710d74e6 (patch)
treeccdfb533eb91565131dcb0f99f8dbcf94580f70c /include
parent8032c13df9eafd1539112dc6f72eb9e1a695ad31 (diff)
Change design, add logos
Diffstat (limited to 'include')
-rw-r--r--include/QuickMedia.hpp1
-rw-r--r--include/SearchBar.hpp6
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