From 36293c710cf8a6da0f8ed6340731812c90885dc7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 01:38:29 +0300 Subject: Add radiobutton own color. Parameter "RADIOBUTTON" in colors.xml --- data/graphics/gui/colors.xml | 1 + data/themes/blacknblack/colors.xml | 1 + data/themes/blackwood/colors.xml | 1 + data/themes/enchilado/colors.xml | 1 + data/themes/mana/colors.xml | 1 + data/themes/pink/colors.xml | 1 + data/themes/unity/colors.xml | 1 + data/themes/wood/colors.xml | 1 + src/gui/theme.cpp | 1 + src/gui/theme.h | 1 + src/gui/widgets/radiobutton.cpp | 2 +- 11 files changed, 11 insertions(+), 1 deletion(-) diff --git a/data/graphics/gui/colors.xml b/data/graphics/gui/colors.xml index 498179faa..5314e891c 100644 --- a/data/graphics/gui/colors.xml +++ b/data/graphics/gui/colors.xml @@ -10,6 +10,7 @@ + diff --git a/data/themes/blacknblack/colors.xml b/data/themes/blacknblack/colors.xml index c8cce9ae7..783c6b92a 100644 --- a/data/themes/blacknblack/colors.xml +++ b/data/themes/blacknblack/colors.xml @@ -10,6 +10,7 @@ + diff --git a/data/themes/blackwood/colors.xml b/data/themes/blackwood/colors.xml index 02b5cb57c..a44187f9d 100644 --- a/data/themes/blackwood/colors.xml +++ b/data/themes/blackwood/colors.xml @@ -10,6 +10,7 @@ + diff --git a/data/themes/enchilado/colors.xml b/data/themes/enchilado/colors.xml index dc00dc97b..c1e4fac69 100644 --- a/data/themes/enchilado/colors.xml +++ b/data/themes/enchilado/colors.xml @@ -10,6 +10,7 @@ + diff --git a/data/themes/mana/colors.xml b/data/themes/mana/colors.xml index aa46f45a6..67dd73975 100644 --- a/data/themes/mana/colors.xml +++ b/data/themes/mana/colors.xml @@ -10,6 +10,7 @@ + diff --git a/data/themes/pink/colors.xml b/data/themes/pink/colors.xml index 1e30679cb..e3ec74a47 100644 --- a/data/themes/pink/colors.xml +++ b/data/themes/pink/colors.xml @@ -10,6 +10,7 @@ + diff --git a/data/themes/unity/colors.xml b/data/themes/unity/colors.xml index 9dd361324..d9d66eb5d 100644 --- a/data/themes/unity/colors.xml +++ b/data/themes/unity/colors.xml @@ -9,6 +9,7 @@ + diff --git a/data/themes/wood/colors.xml b/data/themes/wood/colors.xml index dca2fc3b9..63aa43a0a 100644 --- a/data/themes/wood/colors.xml +++ b/data/themes/wood/colors.xml @@ -10,6 +10,7 @@ + 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()) -- cgit v1.2.3-70-g09d2