diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-18 15:11:25 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-18 15:55:01 +0900 |
commit | 110bd0729460da3c71d06e9cff7da3e80e061adb (patch) | |
tree | 6e0fb08c470875a46ba653efc2415b1b293ee037 /vcl/source/window/floatwin.cxx | |
parent | 3010e6716362cfd1c2199f11add2754ad3d488f6 (diff) |
FloatWindow - add ApplySettings
Change-Id: I72a0560b761ece8d07e5773ab5e90ca2c1af65d5
Diffstat (limited to 'vcl/source/window/floatwin.cxx')
-rw-r--r-- | vcl/source/window/floatwin.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index f7aca45ca468..ef051fc3fc80 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -186,6 +186,19 @@ void FloatingWindow::doDeferredInit(WinBits nBits) mbIsDefferedInit = false; } +void FloatingWindow::ApplySettings(vcl::RenderContext& rRenderContext) +{ + const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings(); + + Color aColor; + if (Window::GetStyle() & WB_3DLOOK) + aColor = rStyleSettings.GetFaceColor(); + else + aColor = rStyleSettings.GetWindowColor(); + + ApplyControlBackground(rRenderContext, aColor); +} + FloatingWindow::~FloatingWindow() { disposeOnce(); |