summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 01:33:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 01:33:26 +0300
commit12b59d229f700b6e1b2364407d83bebfc83df907 (patch)
tree4409330b0c0052f2f6ce3ac41a9982f666dccbdf /src
parent82e111b764205e9f070c2af0562433800b9eabea (diff)
downloadmanaplus-12b59d229f700b6e1b2364407d83bebfc83df907.tar.gz
manaplus-12b59d229f700b6e1b2364407d83bebfc83df907.tar.bz2
manaplus-12b59d229f700b6e1b2364407d83bebfc83df907.tar.xz
manaplus-12b59d229f700b6e1b2364407d83bebfc83df907.zip
Add listbox own color.
Parameter "LISTBOX" in colors.xml
Diffstat (limited to 'src')
-rw-r--r--src/gui/serverdialog.cpp2
-rw-r--r--src/gui/theme.cpp1
-rw-r--r--src/gui/theme.h1
-rw-r--r--src/gui/widgets/listbox.cpp2
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()