vcl/source/window/menu.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
New commits: commit 48d09a74dd0be232bf01e008f970c6c726e8f33a Author: Isamu Mogi <saturda...@gmail.com> Date: Sat Mar 22 11:53:47 2014 +0900 fdo#68546 Update settings for MenuBarWindow in InitStyleSettings It updates menubar's text color settings in StyleSettings when user changes persona. Change-Id: Ic9c3e8073b9188a792823a84bf78b9b5976af50d Reviewed-on: https://gerrit.libreoffice.org/8713 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 2bd9768..88e2b9e 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -6004,15 +6004,16 @@ void MenuBarWindow::ImplInitStyleSettings() if( IsNativeControlSupported( CTRL_MENUBAR, PART_MENU_ITEM ) && IsNativeControlSupported( CTRL_MENUBAR, PART_ENTIRE_CONTROL ) ) { + AllSettings aSettings( GetSettings() ); + ImplGetFrame()->UpdateSettings( aSettings ); // to update persona + StyleSettings aStyle( aSettings.GetStyleSettings() ); Color aHighlightTextColor = ImplGetSVData()->maNWFData.maMenuBarHighlightTextColor; if( aHighlightTextColor != Color( COL_TRANSPARENT ) ) { - AllSettings aSettings( GetSettings() ); - StyleSettings aStyle( aSettings.GetStyleSettings() ); aStyle.SetMenuHighlightTextColor( aHighlightTextColor ); - aSettings.SetStyleSettings( aStyle ); - OutputDevice::SetSettings( aSettings ); } + aSettings.SetStyleSettings( aStyle ); + OutputDevice::SetSettings( aSettings ); } }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits