summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textpreview.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 15:04:01 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 15:08:24 +0300
commit07121956f882dce22235868a25e0c2df96fb828a (patch)
tree5078133e95d7b55c4811e09c9dc4f53261e62fe9 /src/gui/widgets/textpreview.cpp
parentf57b683f8f9909ba7787c33a4953869a2ce04a5c (diff)
downloadmanaplus-07121956f882dce22235868a25e0c2df96fb828a.tar.gz
manaplus-07121956f882dce22235868a25e0c2df96fb828a.tar.bz2
manaplus-07121956f882dce22235868a25e0c2df96fb828a.tar.xz
manaplus-07121956f882dce22235868a25e0c2df96fb828a.zip
Move theme colors enum into separate file.
Diffstat (limited to 'src/gui/widgets/textpreview.cpp')
-rw-r--r--src/gui/widgets/textpreview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/textpreview.cpp b/src/gui/widgets/textpreview.cpp
index d07ae4e7f..505462460 100644
--- a/src/gui/widgets/textpreview.cpp
+++ b/src/gui/widgets/textpreview.cpp
@@ -40,9 +40,9 @@ TextPreview::TextPreview(const Widget2 *const widget,
Widget(widget),
mFont(gui->getFont()),
mText(text),
- mTextColor(&getThemeColor(Theme::TEXT)),
- mTextColor2(&getThemeColor(Theme::TEXT_OUTLINE)),
- mBGColor(&getThemeColor(Theme::BACKGROUND)),
+ mTextColor(&getThemeColor(ThemeColorId::TEXT)),
+ mTextColor2(&getThemeColor(ThemeColorId::TEXT_OUTLINE)),
+ mBGColor(&getThemeColor(ThemeColorId::BACKGROUND)),
mTextBGColor(nullptr),
mPadding(0),
mTextAlpha(false),
@@ -118,7 +118,7 @@ void TextPreview::draw(Graphics* graphics)
if (mOutline && mTextColor != mTextColor2)
{
- const Color &color2 = getThemeColor(Theme::OUTLINE, 255);
+ const Color &color2 = getThemeColor(ThemeColorId::OUTLINE, 255);
mFont->drawString(graphics,
color1,
color2,