diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-27 21:00:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-27 23:15:06 +0300 |
commit | dee02b54a28994e78bd7e738ac0b49df9f59d67f (patch) | |
tree | 86901ed7a6410185bde989d1b92d25ed1d5ceaa2 /src | |
parent | 0cb1ee2755e26a6e0f14f5f05fda4bbd8bf22f32 (diff) | |
download | manaverse-dee02b54a28994e78bd7e738ac0b49df9f59d67f.tar.gz manaverse-dee02b54a28994e78bd7e738ac0b49df9f59d67f.tar.bz2 manaverse-dee02b54a28994e78bd7e738ac0b49df9f59d67f.tar.xz manaverse-dee02b54a28994e78bd7e738ac0b49df9f59d67f.zip |
add support for outlining in window header.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/theme.cpp | 1 | ||||
-rw-r--r-- | src/gui/theme.h | 1 | ||||
-rw-r--r-- | src/gui/widgets/window.cpp | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index d97a54cbf..35fd7ea70 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -750,6 +750,7 @@ static int readColorType(const std::string &type) "TEXTBOX", "TEXTFIELD", "WINDOW", + "WINDOW_OUTLINE", "PARTY_CHAT_TAB", "PARTY_CHAT_TAB_OUTLINE", "PARTY_SOCIAL_TAB", diff --git a/src/gui/theme.h b/src/gui/theme.h index 533734c8c..897cdf7db 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -214,6 +214,7 @@ class Theme final : public Palette, public ConfigListener TEXTBOX, TEXTFIELD, WINDOW, + WINDOW_OUTLINE, PARTY_CHAT_TAB, PARTY_CHAT_TAB_OUTLINE, PARTY_SOCIAL_TAB, diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 94256956b..85545b183 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -143,6 +143,7 @@ Window::Window(const std::string &caption, const bool modal, addWidgetListener(this); mForegroundColor = getThemeColor(Theme::WINDOW); + mForegroundColor2 = getThemeColor(Theme::WINDOW_OUTLINE); setPalette(childPalette); } @@ -267,6 +268,7 @@ void Window::draw(gcn::Graphics *graphics) if (mShowTitle) { g->setColor(mForegroundColor); + g->setColor2(mForegroundColor2); int x; switch (static_cast<gcn::Graphics::Alignment>(mCaptionAlign)) { |