From 607b15dbc2e1dfa8633e7ae679b709fe21c94599 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Apr 2018 12:29:01 +0200 Subject: Fix image ratio, implement scroll locking (cant scroll outside messages) --- src/ColorScheme.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ColorScheme.cpp (limited to 'src/ColorScheme.cpp') diff --git a/src/ColorScheme.cpp b/src/ColorScheme.cpp new file mode 100644 index 0000000..e2138c3 --- /dev/null +++ b/src/ColorScheme.cpp @@ -0,0 +1,20 @@ +#include "../include/ColorScheme.hpp" + +namespace dchat +{ + ColorScheme::Type colorSchemeType = ColorScheme::Type::DARK; + + ColorScheme::Type ColorScheme::getType() + { + return colorSchemeType; + } + + void ColorScheme::setType(Type type) + { + colorSchemeType = type; + } + + sf::Color ColorScheme::getBackgroundColor(){ return sf::Color(40, 40, 40); } + sf::Color ColorScheme::getPanelColor() { return sf::Color(35, 35, 35); } + sf::Color ColorScheme::getTextRegularColor() { return sf::Color(240, 240, 240); } +} -- cgit v1.2.3