aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-23 06:36:04 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-23 06:36:04 +0200
commit5b8c2237147336fd44b9deaa24e933abd797f8a3 (patch)
tree81ef337f8deb6e4fabb8f41594cbd48d23669836 /include
parent6b347e7310c501b826785e9639d962ba1d448b4b (diff)
Testing redesign
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;