From e09cff19fba98786e2bbc551066cbb11d189f687 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 01:11:53 +0300 Subject: Add dropdown own color. Parameter "DROPDOWN" in colors.xml --- src/gui/theme.cpp | 1 + src/gui/theme.h | 1 + src/gui/widgets/dropdown.cpp | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui') 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); -- cgit v1.2.3-60-g2f50