summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 01:56:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 01:56:46 +0300
commitf0491bfa18dca7c206dd802760f9381fe42f8a52 (patch)
tree7ba3da00ea36e9699f0e778533f810ffb8c4699e /src
parent82abefd7567f361311b62cd96a0e9e738e233beb (diff)
downloadmv-f0491bfa18dca7c206dd802760f9381fe42f8a52.tar.gz
mv-f0491bfa18dca7c206dd802760f9381fe42f8a52.tar.bz2
mv-f0491bfa18dca7c206dd802760f9381fe42f8a52.tar.xz
mv-f0491bfa18dca7c206dd802760f9381fe42f8a52.zip
Add window header own color.
Parameter "WINDOW" 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/window.cpp2
3 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 9aa920bc7..93dfd17c3 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -670,6 +670,7 @@ static int readColorType(const std::string &type)
"TAB",
"TEXTBOX",
"TEXTFIELD",
+ "WINDOW",
"PARTY_CHAT_TAB",
"PARTY_SOCIAL_TAB",
"GUILD_CHAT_TAB",
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 2c9588b6c..259da1a66 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -178,6 +178,7 @@ class Theme : public Palette, public ConfigListener
TAB,
TEXTBOX,
TEXTFIELD,
+ WINDOW,
PARTY_CHAT_TAB,
PARTY_SOCIAL_TAB,
GUILD_CHAT_TAB,
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 2350ed958..355f12bee 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -124,7 +124,7 @@ Window::Window(const std::string &caption, bool modal, Window *parent,
addWidgetListener(this);
mCaptionFont = getFont();
- setForegroundColor(Theme::getThemeColor(Theme::TEXT));
+ setForegroundColor(Theme::getThemeColor(Theme::WINDOW));
}
Window::~Window()