diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Chatbar.hpp | 1 | ||||
-rw-r--r-- | include/ColorScheme.hpp | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/Chatbar.hpp b/include/Chatbar.hpp index a9871f6..b6c6be8 100644 --- a/include/Chatbar.hpp +++ b/include/Chatbar.hpp @@ -35,6 +35,7 @@ namespace dchat private: sf::Text text; sf::RectangleShape background; + sf::RectangleShape inputBackground; int caretIndex; sf::Vector2f caretOffset; sf::Clock blinkTimer; diff --git a/include/ColorScheme.hpp b/include/ColorScheme.hpp new file mode 100644 index 0000000..07010ba --- /dev/null +++ b/include/ColorScheme.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include <SFML/Graphics/Color.hpp> + +namespace dchat +{ + class ColorScheme + { + public: + static sf::Color getBackgroundColor() { return sf::Color(40, 40, 40); } + static sf::Color getPanelColor() { return sf::Color(35, 35, 35); } + + static sf::Color getTextRegularColor() { return sf::Color(240, 240, 240); } + }; +} |