aboutsummaryrefslogtreecommitdiff
path: root/src/ChannelSidePanel.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-29 12:29:01 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-29 12:29:13 +0200
commit607b15dbc2e1dfa8633e7ae679b709fe21c94599 (patch)
tree6e323ec65de8c5f362a08abf8fef5c12b8398d4f /src/ChannelSidePanel.cpp
parente7caed2208893723181892d5e197b924311373fb (diff)
Fix image ratio, implement scroll locking (cant scroll outside messages)
Diffstat (limited to 'src/ChannelSidePanel.cpp')
-rw-r--r--src/ChannelSidePanel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ChannelSidePanel.cpp b/src/ChannelSidePanel.cpp
index cbda247..8d0b714 100644
--- a/src/ChannelSidePanel.cpp
+++ b/src/ChannelSidePanel.cpp
@@ -14,7 +14,7 @@ using namespace std;
namespace dchat
{
vector<Channel*> channels;
- const float WIDTH = 200.0f;
+ const float WIDTH = 300.0f;
const unsigned int FONT_SIZE = 20;
const float PADDING_BOTTOM = 10.0f;
const float CHANNEL_NAME_BOX_HEIGHT_RATIO = 1.5f;
@@ -60,6 +60,7 @@ namespace dchat
str += sf::String::fromUtf8(channel->getName().begin(), channel->getName().end());
sf::Text text(str, *font, fontSize);
text.setPosition(sf::Vector2f(position.x, floor(position.y + channelBoxHeight * 0.5f - fontHeight * 0.5f)));
+ text.setFillColor(ColorScheme::getTextRegularColor());
window.draw(text);
position.y += floor(fontHeight + PADDING_BOTTOM);
}