From e7caed2208893723181892d5e197b924311373fb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Apr 2018 09:31:06 +0200 Subject: Improve scaling, start implementing color scheme --- include/Chatbar.hpp | 1 + include/ColorScheme.hpp | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 include/ColorScheme.hpp (limited to 'include') 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 + +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); } + }; +} -- cgit v1.2.3