aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-29 09:31:06 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-29 09:31:10 +0200
commite7caed2208893723181892d5e197b924311373fb (patch)
tree1a92cd65f23537eb57b4d80646e84bd359bc0ee2 /include
parentf90a5705bd65a4ebb5edc9df003a383039fec555 (diff)
Improve scaling, start implementing color scheme
Diffstat (limited to 'include')
-rw-r--r--include/Chatbar.hpp1
-rw-r--r--include/ColorScheme.hpp15
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); }
+ };
+}