From 82abefd7567f361311b62cd96a0e9e738e233beb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 01:49:15 +0300 Subject: Add textfield own color. Parameter "TEXTFIELD" in colors.xml --- src/gui/theme.cpp | 1 + src/gui/theme.h | 1 + src/gui/widgets/textfield.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index cc9116cdd..9aa920bc7 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -669,6 +669,7 @@ static int readColorType(const std::string &type) "RADIOBUTTON", "TAB", "TEXTBOX", + "TEXTFIELD", "PARTY_CHAT_TAB", "PARTY_SOCIAL_TAB", "GUILD_CHAT_TAB", diff --git a/src/gui/theme.h b/src/gui/theme.h index 9c89afc84..2c9588b6c 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -177,6 +177,7 @@ class Theme : public Palette, public ConfigListener RADIOBUTTON, TAB, TEXTBOX, + TEXTFIELD, PARTY_CHAT_TAB, PARTY_SOCIAL_TAB, GUILD_CHAT_TAB, diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index 261cdf901..1c22a0a7b 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -60,7 +60,7 @@ TextField::TextField(const std::string &text, bool loseFocusOnTab, { setFrameSize(2); - setForegroundColor(Theme::getThemeColor(Theme::TEXT)); + setForegroundColor(Theme::getThemeColor(Theme::TEXTFIELD)); if (instances == 0) { -- cgit v1.2.3-60-g2f50