From 42c0ad1606c1169422b0baba3b4d4ba1d1129d36 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 21 Jul 2012 23:28:16 +0300 Subject: Add two new colors to themes. BUBBLE_NAME for speaker nick. BUBBLE_TEXT for speach text. --- src/gui/speechbubble.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/speechbubble.cpp') diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp index 970b18ddb..ff20603ce 100644 --- a/src/gui/speechbubble.cpp +++ b/src/gui/speechbubble.cpp @@ -49,7 +49,7 @@ SpeechBubble::SpeechBubble(): mSpeechBox = new TextBox; mSpeechBox->setEditable(false); mSpeechBox->setOpaque(false); - mSpeechBox->setTextColor(&Theme::getThemeColor(Theme::CHAT)); + mSpeechBox->setTextColor(&Theme::getThemeColor(Theme::BUBBLE_TEXT)); add(mCaption); add(mSpeechBox); @@ -67,7 +67,7 @@ void SpeechBubble::setText(const std::string &text, bool showName) if (text == mText && (mCaption->getWidth() <= mSpeechBox->getMinWidth())) return; - mSpeechBox->setTextColor(&Theme::getThemeColor(Theme::TEXT)); + mSpeechBox->setTextColor(&Theme::getThemeColor(Theme::BUBBLE_TEXT)); int width = mCaption->getWidth() + 2 * getPadding(); mSpeechBox->setTextWrapped(text, 130 > width ? 130 : width); -- cgit v1.2.3-70-g09d2