diff options
Diffstat (limited to 'src/UsersSidePanel.cpp')
-rw-r--r-- | src/UsersSidePanel.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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 <SFML/Graphics/RectangleShape.hpp> #include <SFML/Graphics/Text.hpp> #include <vector> @@ -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(); } } |