diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-04-29 09:31:06 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-04-29 09:31:10 +0200 |
commit | e7caed2208893723181892d5e197b924311373fb (patch) | |
tree | 1a92cd65f23537eb57b4d80646e84bd359bc0ee2 /include | |
parent | f90a5705bd65a4ebb5edc9df003a383039fec555 (diff) |
Improve scaling, start implementing color scheme
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); } + }; +} |