summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 01:02:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 01:02:00 +0300
commit8173f60c83d176e10412b1dc1191d7987cebdb10 (patch)
treea58654240215f64676ab73850ecb29ee83a04631 /src
parent46696c84bad31e35e003b5c09998503119b128eb (diff)
downloadmanaplus-8173f60c83d176e10412b1dc1191d7987cebdb10.tar.gz
manaplus-8173f60c83d176e10412b1dc1191d7987cebdb10.tar.bz2
manaplus-8173f60c83d176e10412b1dc1191d7987cebdb10.tar.xz
manaplus-8173f60c83d176e10412b1dc1191d7987cebdb10.zip
Add checkbox own color.
Parameter "CHECKBOX" in colors.xml
Diffstat (limited to 'src')
-rw-r--r--src/gui/theme.cpp1
-rw-r--r--src/gui/theme.h1
-rw-r--r--src/gui/widgets/checkbox.cpp2
3 files changed, 3 insertions, 1 deletions
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()