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 --- src/UsersSidePanel.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/UsersSidePanel.cpp') diff --git a/src/UsersSidePanel.cpp b/src/UsersSidePanel.cpp index 74b58cf..bea6296 100644 --- a/src/UsersSidePanel.cpp +++ b/src/UsersSidePanel.cpp @@ -3,6 +3,7 @@ #include "../include/ResourceCache.hpp" #include "../include/Settings.hpp" #include "../include/Channel.hpp" +#include "../include/ColorScheme.hpp" #include #include #include @@ -19,9 +20,9 @@ namespace dchat { float posY = ChannelTopPanel::getHeight(); auto windowSize = window.getSize(); - sf::RectangleShape rect(sf::Vector2f(WIDTH, windowSize.y)); - rect.setFillColor(sf::Color(35, 35, 35)); - rect.setPosition(windowSize.x - WIDTH, posY); + sf::RectangleShape rect(sf::Vector2f(getWidth(), windowSize.y)); + rect.setFillColor(ColorScheme::getPanelColor()); + rect.setPosition(windowSize.x - getWidth(), posY); window.draw(rect); posY += 10.0f; @@ -43,6 +44,6 @@ namespace dchat float UsersSidePanel::getWidth() { - return WIDTH; + return WIDTH * Settings::getScaling(); } } -- cgit v1.2.3