From dee02b54a28994e78bd7e738ac0b49df9f59d67f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Dec 2012 21:00:18 +0300 Subject: add support for outlining in window header. --- src/gui/theme.cpp | 1 + src/gui/theme.h | 1 + src/gui/widgets/window.cpp | 2 ++ 3 files changed, 4 insertions(+) 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(mCaptionAlign)) { -- cgit v1.2.3-60-g2f50