From cc3a65bde2e480b2b07b74eeef20d9081d7f730f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 2 Jun 2021 17:42:30 +0200 Subject: Add modern theme Join matrix room by their name instead of id if there is a name. This allows you to join rooms where the homeserver that created the room is no longer participating in the room. --- include/RoundedRectangle.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/RoundedRectangle.hpp') diff --git a/include/RoundedRectangle.hpp b/include/RoundedRectangle.hpp index 96e57fd..b9d0754 100644 --- a/include/RoundedRectangle.hpp +++ b/include/RoundedRectangle.hpp @@ -17,6 +17,8 @@ namespace QuickMedia { void set_color(sf::Color color); sf::Vector2f get_position() const; sf::Vector2f get_size() const; + void set_band(float y, float height); + void set_band_color(sf::Color color); void draw(sf::RenderTarget &target); private: float radius; @@ -24,5 +26,8 @@ namespace QuickMedia { sf::Vector2f size; sf::Vertex vertices[4]; sf::Shader *rounded_rectangle_shader; + float band_y; + float band_height; + sf::Color band_color; }; } \ No newline at end of file -- cgit v1.2.3