diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-29 01:33:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-29 01:33:26 +0300 |
commit | 12b59d229f700b6e1b2364407d83bebfc83df907 (patch) | |
tree | 4409330b0c0052f2f6ce3ac41a9982f666dccbdf /src | |
parent | 82e111b764205e9f070c2af0562433800b9eabea (diff) | |
download | plus-12b59d229f700b6e1b2364407d83bebfc83df907.tar.gz plus-12b59d229f700b6e1b2364407d83bebfc83df907.tar.bz2 plus-12b59d229f700b6e1b2364407d83bebfc83df907.tar.xz plus-12b59d229f700b6e1b2364407d83bebfc83df907.zip |
Add listbox own color.
Parameter "LISTBOX" in colors.xml
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/serverdialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/theme.cpp | 1 | ||||
-rw-r--r-- | src/gui/theme.h | 1 | ||||
-rw-r--r-- | src/gui/widgets/listbox.cpp | 2 |
4 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index ed682c487..93f0609ff 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -160,7 +160,7 @@ public: ServersListBox(ServersListModel *const model) : ListBox(model), mHighlightColor(Theme::getThemeColor(Theme::HIGHLIGHT)), - mTextColor(Theme::getThemeColor(Theme::TEXT)), + mTextColor(Theme::getThemeColor(Theme::LISTBOX)), mNotSupportedColor(Theme::getThemeColor( Theme::SERVER_VERSION_NOT_SUPPORTED)) { diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index e98534da8..bf811d3fb 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -665,6 +665,7 @@ static int readColorType(const std::string &type) "CHECKBOX", "DROPDOWN", "LABEL", + "LISTBOX", "TAB", "PARTY_CHAT_TAB", "PARTY_SOCIAL_TAB", diff --git a/src/gui/theme.h b/src/gui/theme.h index 01f8d1c3f..7705388fb 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -173,6 +173,7 @@ class Theme : public Palette, public ConfigListener CHECKBOX, DROPDOWN, LABEL, + LISTBOX, TAB, PARTY_CHAT_TAB, PARTY_SOCIAL_TAB, diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp index 46067df91..f11632675 100644 --- a/src/gui/widgets/listbox.cpp +++ b/src/gui/widgets/listbox.cpp @@ -45,7 +45,7 @@ ListBox::ListBox(gcn::ListModel *listModel): mHighlightColor(Theme::getThemeColor(Theme::HIGHLIGHT)), mDistributeMousePressed(true) { - setForegroundColor(Theme::getThemeColor(Theme::TEXT)); + setForegroundColor(Theme::getThemeColor(Theme::LISTBOX)); } ListBox::~ListBox() |