aboutsummaryrefslogtreecommitdiff
path: root/include/RoundedRectangle.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-02 17:42:30 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-02 17:43:47 +0200
commitcc3a65bde2e480b2b07b74eeef20d9081d7f730f (patch)
tree1bb5b85ab764592093e8042458ec9f4be0cf904a /include/RoundedRectangle.hpp
parent1b6812348e75de21c8f398a7dc944cc427064cc4 (diff)
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.
Diffstat (limited to 'include/RoundedRectangle.hpp')
-rw-r--r--include/RoundedRectangle.hpp5
1 files changed, 5 insertions, 0 deletions
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