summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/textfield.cpp4
-rw-r--r--src/gui/widgets/textfield.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 23cedfde9..73e01fb63 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -60,6 +60,7 @@ TextField::TextField(const Widget2 *const widget,
mLastEventPaste(false),
mPadding(1),
mCaretColor(&getThemeColor(Theme::CARET)),
+ mForegroundColor2(getThemeColor(Theme::TEXTFIELD_OUTLINE)),
mPopupMenu(nullptr)
{
setFrameSize(2);
@@ -138,7 +139,8 @@ void TextField::draw(gcn::Graphics *graphics)
mXScroll);
}
- graphics->setColor(mForegroundColor);
+ static_cast<Graphics*>(graphics)->setColorAll(
+ mForegroundColor, mForegroundColor2);
gcn::Font *const font = getFont();
font->drawString(graphics, mText, mPadding - mXScroll, mPadding);
BLOCK_END("TextField::draw")
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h
index 14b8f57b5..0c30fc819 100644
--- a/src/gui/widgets/textfield.h
+++ b/src/gui/widgets/textfield.h
@@ -144,6 +144,7 @@ class TextField : public gcn::TextField,
int mLastEventPaste;
int mPadding;
const gcn::Color *mCaretColor;
+ gcn::Color mForegroundColor2;
PopupMenu *mPopupMenu;
};