From 5b8c2237147336fd44b9deaa24e933abd797f8a3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 23 Sep 2020 06:36:04 +0200 Subject: Testing redesign --- include/Body.hpp | 1 + include/SearchBar.hpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') 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 #include #include +#include "../external/RoundedRectangleShape.hpp" #include 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; -- cgit v1.2.3