diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-03 18:32:16 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-03 18:32:16 +0200 |
commit | 2d1f007e7586b7745380060a506ba351a609aa3a (patch) | |
tree | 4cae8892fb7ca5ecebe1696ce64cb12a1e922f8d /include | |
parent | 18467b4cd333ab0b7aa10b1c1acd83942c583e60 (diff) |
Allow changing the placeholder text, fix dmenu empty search selection
Diffstat (limited to 'include')
-rw-r--r-- | include/SearchBar.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index 6222da4..0cffff5 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -16,7 +16,7 @@ namespace QuickMedia { class SearchBar { public: - SearchBar(sf::Font &font, sf::Texture &plugin_logo); + SearchBar(sf::Font &font, sf::Texture &plugin_logo, const std::string &placeholder); void draw(sf::RenderWindow &window, bool draw_shadow = true); void update(); void onWindowResize(const sf::Vector2f &window_size); @@ -45,6 +45,7 @@ namespace QuickMedia { sf::RectangleShape background_shadow; sf::RectangleShape shade; sf::Sprite plugin_logo_sprite; + std::string placeholder_str; bool show_placeholder; bool updated_search; bool updated_autocomplete; |