diff options
Diffstat (limited to 'src/ChannelSidePanel.cpp')
-rw-r--r-- | src/ChannelSidePanel.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ChannelSidePanel.cpp b/src/ChannelSidePanel.cpp index 89a550a..58cb9bc 100644 --- a/src/ChannelSidePanel.cpp +++ b/src/ChannelSidePanel.cpp @@ -33,11 +33,10 @@ namespace dchat { float posY = ChannelTopPanel::getHeight(); auto windowSize = window.getSize(); - sf::RectangleShape rect(sf::Vector2f(getWidth(), windowSize.y - ChannelTopPanel::getHeight())); - rect.setPosition(0.0f, posY); + sf::RectangleShape rect(sf::Vector2f(getWidth(), windowSize.y)); + rect.setPosition(0.0f, 0.0f); rect.setFillColor(ColorScheme::getPanelColor()); window.draw(rect); - //posY += 10.0f; const sf::Font *font = ResourceCache::getFont("fonts/Roboto-Regular.ttf"); const float fontSize = FONT_SIZE * Settings::getScaling(); @@ -49,7 +48,7 @@ namespace dchat { if(channel == Channel::getCurrent()) { - rect.setFillColor(ColorScheme::getPanelColor() + sf::Color(15, 15, 15)); + rect.setFillColor(ColorScheme::getBackgroundColor() + sf::Color(15, 15, 15)); rect.setSize(sf::Vector2f(getWidth(), channelBoxHeight)); rect.setPosition(sf::Vector2f(0.0f, position.y)); window.draw(rect); |