summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r--src/gui/widgets/window.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index fa673e420..ae47cb001 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -98,6 +98,7 @@ Window::Window(const std::string &caption, const bool modal,
if (skin == "")
skin = "window.xml";
+ int childPalette = 1;
// Loads the skin
if (Theme::instance())
{
@@ -122,6 +123,8 @@ Window::Window(const std::string &caption, const bool modal,
{
mCaptionAlign = gcn::Graphics::LEFT;
}
+ setPalette(getOption("palette"));
+ childPalette = getOption("childPalette");
}
}
@@ -140,6 +143,9 @@ Window::Window(const std::string &caption, const bool modal,
addWidgetListener(this);
mForegroundColor = getThemeColor(Theme::WINDOW);
+ logger->log("window palettes: %d, %d", mPalette, childPalette);
+ if (childPalette != mPalette)
+ setPalette(childPalette);
}
Window::~Window()