summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-27 21:00:18 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-27 23:15:06 +0300
commitdee02b54a28994e78bd7e738ac0b49df9f59d67f (patch)
tree86901ed7a6410185bde989d1b92d25ed1d5ceaa2 /src/gui/widgets
parent0cb1ee2755e26a6e0f14f5f05fda4bbd8bf22f32 (diff)
downloadplus-dee02b54a28994e78bd7e738ac0b49df9f59d67f.tar.gz
plus-dee02b54a28994e78bd7e738ac0b49df9f59d67f.tar.bz2
plus-dee02b54a28994e78bd7e738ac0b49df9f59d67f.tar.xz
plus-dee02b54a28994e78bd7e738ac0b49df9f59d67f.zip
add support for outlining in window header.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/window.cpp2
1 files changed, 2 insertions, 0 deletions
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))
{