diff options
Diffstat (limited to 'src/gui')
-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)) { |