summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 01:38:29 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 01:38:59 +0300
commit36293c710cf8a6da0f8ed6340731812c90885dc7 (patch)
tree8a95ea540ff1c30bf609559abee5dd13952f4f06 /src/gui
parent12b59d229f700b6e1b2364407d83bebfc83df907 (diff)
downloadmv-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/gui')
-rw-r--r--src/gui/theme.cpp1
-rw-r--r--src/gui/theme.h1
-rw-r--r--src/gui/widgets/radiobutton.cpp2
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())