summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textpreview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/textpreview.h')
-rw-r--r--src/gui/widgets/textpreview.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/widgets/textpreview.h b/src/gui/widgets/textpreview.h
index e3712a934..782fcc2e0 100644
--- a/src/gui/widgets/textpreview.h
+++ b/src/gui/widgets/textpreview.h
@@ -44,14 +44,12 @@ class TextPreview final : public gcn::Widget,
~TextPreview();
- /**
- * Sets the color the text is printed in.
- *
- * @param color the color to set
- */
inline void setTextColor(const gcn::Color *color)
{ mTextColor = color; adjustSize(); }
+ inline void setTextColor2(const gcn::Color *color)
+ { mTextColor2 = color; adjustSize(); }
+
/**
* Sets the text to use the set alpha value.
*
@@ -130,6 +128,7 @@ class TextPreview final : public gcn::Widget,
gcn::Font *mFont;
std::string mText;
const gcn::Color *mTextColor;
+ const gcn::Color *mTextColor2;
const gcn::Color *mBGColor;
const gcn::Color *mTextBGColor;
bool mTextAlpha;