diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-04-29 12:29:01 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-04-29 12:29:13 +0200 |
commit | 607b15dbc2e1dfa8633e7ae679b709fe21c94599 (patch) | |
tree | 6e323ec65de8c5f362a08abf8fef5c12b8398d4f /src/UsersSidePanel.cpp | |
parent | e7caed2208893723181892d5e197b924311373fb (diff) |
Fix image ratio, implement scroll locking (cant scroll outside messages)
Diffstat (limited to 'src/UsersSidePanel.cpp')
-rw-r--r-- | src/UsersSidePanel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/UsersSidePanel.cpp b/src/UsersSidePanel.cpp index bea6296..f665d1f 100644 --- a/src/UsersSidePanel.cpp +++ b/src/UsersSidePanel.cpp @@ -13,7 +13,7 @@ using namespace std; namespace dchat { - const float WIDTH = 200.0f; + const float WIDTH = 250.0f; const unsigned int FONT_SIZE = 20; void UsersSidePanel::draw(sf::RenderWindow &window) @@ -37,6 +37,7 @@ namespace dchat sf::String str = sf::String::fromUtf8(user->getName().begin(), user->getName().end()); sf::Text text(str, *font, FONT_SIZE * Settings::getScaling()); text.setPosition(position); + text.setFillColor(sf::Color(15, 192, 252)); window.draw(text); position.y += floor(font->getLineSpacing(FONT_SIZE * Settings::getScaling())); } |