diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-29 01:49:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-29 01:49:15 +0300 |
commit | 82abefd7567f361311b62cd96a0e9e738e233beb (patch) | |
tree | 37dbd6406074a89d01a8c2380d88bc7033e9d497 /src/gui | |
parent | 6b6d627f2c95d29d576c90def4764869ea1fa2fb (diff) | |
download | manaplus-82abefd7567f361311b62cd96a0e9e738e233beb.tar.gz manaplus-82abefd7567f361311b62cd96a0e9e738e233beb.tar.bz2 manaplus-82abefd7567f361311b62cd96a0e9e738e233beb.tar.xz manaplus-82abefd7567f361311b62cd96a0e9e738e233beb.zip |
Add textfield own color.
Parameter "TEXTFIELD" in colors.xml
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/theme.cpp | 1 | ||||
-rw-r--r-- | src/gui/theme.h | 1 | ||||
-rw-r--r-- | src/gui/widgets/textfield.cpp | 2 |
3 files changed, 3 insertions, 1 deletions
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) { |