From 36293c710cf8a6da0f8ed6340731812c90885dc7 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Wed, 29 Aug 2012 01:38:29 +0300
Subject: Add radiobutton own color.

Parameter "RADIOBUTTON" in colors.xml
---
 src/gui/theme.cpp               | 1 +
 src/gui/theme.h                 | 1 +
 src/gui/widgets/radiobutton.cpp | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

(limited to 'src')

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