summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index b4aace3cf..bc2d9c946 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -56,15 +56,15 @@ TextField::TextField(const Widget2 *const widget,
gcn::FocusListener(),
Widget2(widget),
mSendAlwaysEvents(sendAlwaysEvents),
- mNumeric(false),
+ mCaretColor(&getThemeColor(Theme::CARET)),
+ mForegroundColor2(getThemeColor(Theme::TEXTFIELD_OUTLINE)),
+ mPopupMenu(nullptr),
mMinimum(0),
mMaximum(0),
- mLoseFocusOnTab(loseFocusOnTab),
mLastEventPaste(false),
mPadding(1),
- mCaretColor(&getThemeColor(Theme::CARET)),
- mForegroundColor2(getThemeColor(Theme::TEXTFIELD_OUTLINE)),
- mPopupMenu(nullptr)
+ mNumeric(false),
+ mLoseFocusOnTab(loseFocusOnTab)
{
setFrameSize(2);
mForegroundColor = getThemeColor(Theme::TEXTFIELD);