summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 01:11:53 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 01:11:53 +0300
commite09cff19fba98786e2bbc551066cbb11d189f687 (patch)
tree909380d278d6eb6b34c0f2c92278d6b86e7313c9 /src
parent8173f60c83d176e10412b1dc1191d7987cebdb10 (diff)
downloadplus-e09cff19fba98786e2bbc551066cbb11d189f687.tar.gz
plus-e09cff19fba98786e2bbc551066cbb11d189f687.tar.bz2
plus-e09cff19fba98786e2bbc551066cbb11d189f687.tar.xz
plus-e09cff19fba98786e2bbc551066cbb11d189f687.zip
Add dropdown own color.
Parameter "DROPDOWN" 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/dropdown.cpp3
3 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 723730e2d..440c4ccf9 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -663,6 +663,7 @@ static int readColorType(const std::string &type)
"BUTTON",
"BUTTON_DISABLED",
"CHECKBOX",
+ "DROPDOWN",
"TAB",
"PARTY_CHAT_TAB",
"PARTY_SOCIAL_TAB",
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 15628d9d3..5e478a433 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -171,6 +171,7 @@ class Theme : public Palette, public ConfigListener
BUTTON,
BUTTON_DISABLED,
CHECKBOX,
+ DROPDOWN,
TAB,
PARTY_CHAT_TAB,
PARTY_SOCIAL_TAB,
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index d42b60799..3012c5553 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -106,7 +106,8 @@ DropDown::DropDown(gcn::ListModel *listModel, gcn::ActionListener* listener,
instances++;
- setForegroundColor(Theme::getThemeColor(Theme::TEXT));
+ mListBox->setForegroundColor(Theme::getThemeColor(Theme::DROPDOWN));
+ setForegroundColor(Theme::getThemeColor(Theme::DROPDOWN));
if (!eventId.empty())
setActionEventId(eventId);