aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp1
-rw-r--r--include/SearchBar.hpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index 4e30684..2cd7b5f 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -107,6 +107,7 @@ namespace QuickMedia {
// Set to {0, 0} to disable resizing
sf::Vector2i thumbnail_resize_target_size;
sf::Vector2f thumbnail_fallback_size;
+ sf::Color line_seperator_color;
private:
struct ThumbnailData {
bool referenced;
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;