From 8173f60c83d176e10412b1dc1191d7987cebdb10 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 01:02:00 +0300 Subject: Add checkbox own color. Parameter "CHECKBOX" in colors.xml --- src/gui/theme.cpp | 1 + src/gui/theme.h | 1 + src/gui/widgets/checkbox.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 990f0d41a..723730e2d 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -662,6 +662,7 @@ static int readColorType(const std::string &type) "PROGRESS_BAR", "BUTTON", "BUTTON_DISABLED", + "CHECKBOX", "TAB", "PARTY_CHAT_TAB", "PARTY_SOCIAL_TAB", diff --git a/src/gui/theme.h b/src/gui/theme.h index a3b4f6800..15628d9d3 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -170,6 +170,7 @@ class Theme : public Palette, public ConfigListener PROGRESS_BAR, BUTTON, BUTTON_DISABLED, + CHECKBOX, TAB, PARTY_CHAT_TAB, PARTY_SOCIAL_TAB, diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp index 04ac998bf..72ca9eb8d 100644 --- a/src/gui/widgets/checkbox.cpp +++ b/src/gui/widgets/checkbox.cpp @@ -96,7 +96,7 @@ CheckBox::CheckBox(const std::string &caption, bool selected, if (listener) addActionListener(listener); - setForegroundColor(Theme::getThemeColor(Theme::TEXT)); + setForegroundColor(Theme::getThemeColor(Theme::CHECKBOX)); } CheckBox::~CheckBox() -- cgit v1.2.3-70-g09d2