summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2010-06-09 11:55:10 +0200
committerChristian Lippka <cl@openoffice.org>2010-06-09 11:55:10 +0200
commit2a28988178dd09dd437f726df8263d6659478c27 (patch)
tree74ad3cc72fecb65672fb95e5b78934a981d3b6a5 /svtools
parenta51dc52262038e9c72eea188cfe9a6812bbc2f8d (diff)
#i111860# fix high contrast mode for toolbar menus
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/toolbarmenu.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx
index f07ebd7fe8cd..fa393da3d5a8 100644
--- a/svtools/source/control/toolbarmenu.cxx
+++ b/svtools/source/control/toolbarmenu.cxx
@@ -481,6 +481,9 @@ void ToolbarMenu::implInit(const Reference< XFrame >& rFrame)
{
mpImpl = new ToolbarMenu_Impl( *this, rFrame );
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ SetControlBackground( rStyleSettings.GetMenuColor() );
+
initWindow();
Window* pWindow = GetTopMostParentSystemWindow( this );
@@ -638,8 +641,6 @@ void ToolbarMenu::initWindow()
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- SetControlBackground( GetSettings().GetStyleSettings().GetFaceGradientColor() );
-
SetPointFont( rStyleSettings.GetMenuFont() );
SetBackground( Wallpaper( GetControlBackground() ) );
SetTextColor( rStyleSettings.GetMenuTextColor() );