From 478a5fcaa06b001915bd8950c3ef807d73c571ca Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 May 2013 00:46:56 +0300 Subject: add outline color in textfield class. --- src/gui/widgets/textfield.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/textfield.cpp') 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)->setColorAll( + mForegroundColor, mForegroundColor2); gcn::Font *const font = getFont(); font->drawString(graphics, mText, mPadding - mXScroll, mPadding); BLOCK_END("TextField::draw") -- cgit v1.2.3-60-g2f50