summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-11-08 10:50:51 +0100
committerJan Holesovsky <kendy@suse.cz>2012-11-15 13:43:34 +0100
commitf47f9f5a4e5c96a8b96a327ef364329412b7adcd (patch)
tree5b4c8a5faadd24d31f9e7778c68b9611186cd3ef
parent6d634c9d05fecb39b1624008ca6c5edfc53cb357 (diff)
Windows: Enable nicer toolbars even for XP, not only Vista and higher.
Change-Id: I26837290d1416637032d2dfcfa45b4003c874309
-rw-r--r--vcl/win/source/gdi/salnativewidgets-luna.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx
index 2f4df21557c2..685249bff785 100644
--- a/vcl/win/source/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx
@@ -1493,6 +1493,9 @@ void WinSalGraphics::updateSettingsNative( AllSettings& rSettings )
StyleSettings aStyleSettings = rSettings.GetStyleSettings();
ImplSVData* pSVData = ImplGetSVData();
+ // don't draw frame around each and every toolbar
+ pSVData->maNWFData.mbDockingAreaAvoidTBFrames = true;
+
// check if vista or newer runs
// in Aero theme (and similar ?) the menu text color does not change
// for selected items; also on WinXP and earlier menus are not themed
@@ -1505,9 +1508,6 @@ void WinSalGraphics::updateSettingsNative( AllSettings& rSettings )
pSVData->maNWFData.mnMenuFormatBorderY = 2;
pSVData->maNWFData.maMenuBarHighlightTextColor = aStyleSettings.GetMenuTextColor();
GetSalData()->mbThemeMenuSupport = TRUE;
-
- // don't draw frame around each and every toolbar
- pSVData->maNWFData.mbDockingAreaAvoidTBFrames = true;
}
rSettings.SetStyleSettings( aStyleSettings );