diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-06 14:07:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-06 14:07:31 +0300 |
commit | c663cb7b46ab4dc70bc555cbb4414d5636ff02a0 (patch) | |
tree | 8f238f0a4763f8f60b31b9f7a116bad76f699ce1 /src/gui/speechbubble.cpp | |
parent | 6123e92adb91ff0ad232fb3fe38a8f218ebf3249 (diff) | |
download | plus-c663cb7b46ab4dc70bc555cbb4414d5636ff02a0.tar.gz plus-c663cb7b46ab4dc70bc555cbb4414d5636ff02a0.tar.bz2 plus-c663cb7b46ab4dc70bc555cbb4414d5636ff02a0.tar.xz plus-c663cb7b46ab4dc70bc555cbb4414d5636ff02a0.zip |
add outline colors in speechbubble.
Diffstat (limited to 'src/gui/speechbubble.cpp')
-rw-r--r-- | src/gui/speechbubble.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp index 66aed08c1..9bd85ad43 100644 --- a/src/gui/speechbubble.cpp +++ b/src/gui/speechbubble.cpp @@ -46,18 +46,20 @@ SpeechBubble::SpeechBubble() : mCaption->setFont(boldFont); mSpeechBox->setEditable(false); mSpeechBox->setOpaque(false); - mSpeechBox->setForegroundColor(getThemeColor(Theme::BUBBLE_TEXT)); + mSpeechBox->setForegroundColorAll(getThemeColor(Theme::BUBBLE_TEXT), + getThemeColor(Theme::BUBBLE_TEXT_OUTLINE)); add(mCaption); add(mSpeechBox); } void SpeechBubble::setCaption(const std::string &name, - const gcn::Color *const color) + const gcn::Color *const color1, + const gcn::Color *const color2) { mCaption->setCaption(name); mCaption->adjustSize(); - mCaption->setForegroundColor(*color); + mCaption->setForegroundColorAll(*color1, *color2); } void SpeechBubble::setText(const std::string &text, const bool showName) @@ -65,7 +67,8 @@ void SpeechBubble::setText(const std::string &text, const bool showName) if (text == mText && (mCaption->getWidth() <= mSpeechBox->getMinWidth())) return; - mSpeechBox->setForegroundColor(getThemeColor(Theme::BUBBLE_TEXT)); + mSpeechBox->setForegroundColorAll(getThemeColor(Theme::BUBBLE_TEXT), + getThemeColor(Theme::BUBBLE_TEXT_OUTLINE)); int width = mCaption->getWidth() + 2 * getPadding(); mSpeechBox->setTextWrapped(text, 130 > width ? 130 : width); |