diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-29 01:38:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-29 01:38:59 +0300 |
commit | 36293c710cf8a6da0f8ed6340731812c90885dc7 (patch) | |
tree | 8a95ea540ff1c30bf609559abee5dd13952f4f06 /src | |
parent | 12b59d229f700b6e1b2364407d83bebfc83df907 (diff) | |
download | mv-36293c710cf8a6da0f8ed6340731812c90885dc7.tar.gz mv-36293c710cf8a6da0f8ed6340731812c90885dc7.tar.bz2 mv-36293c710cf8a6da0f8ed6340731812c90885dc7.tar.xz mv-36293c710cf8a6da0f8ed6340731812c90885dc7.zip |
Add radiobutton own color.
Parameter "RADIOBUTTON" in colors.xml
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/theme.cpp | 1 | ||||
-rw-r--r-- | src/gui/theme.h | 1 | ||||
-rw-r--r-- | src/gui/widgets/radiobutton.cpp | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index bf811d3fb..ce439903b 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -666,6 +666,7 @@ static int readColorType(const std::string &type) "DROPDOWN", "LABEL", "LISTBOX", + "RADIOBUTTON", "TAB", "PARTY_CHAT_TAB", "PARTY_SOCIAL_TAB", diff --git a/src/gui/theme.h b/src/gui/theme.h index 7705388fb..dcafd75e6 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -174,6 +174,7 @@ class Theme : public Palette, public ConfigListener DROPDOWN, LABEL, LISTBOX, + RADIOBUTTON, TAB, PARTY_CHAT_TAB, PARTY_SOCIAL_TAB, diff --git a/src/gui/widgets/radiobutton.cpp b/src/gui/widgets/radiobutton.cpp index 6a89b3080..7d3c67671 100644 --- a/src/gui/widgets/radiobutton.cpp +++ b/src/gui/widgets/radiobutton.cpp @@ -48,7 +48,7 @@ RadioButton::RadioButton(const std::string &caption, const std::string &group, gcn::RadioButton(caption, group, marked), mHasMouse(false) { - setForegroundColor(Theme::getThemeColor(Theme::TEXT)); + setForegroundColor(Theme::getThemeColor(Theme::RADIOBUTTON)); if (instances == 0) { if (Theme::instance()) |