Kaydet (Commit) b6e68923 authored tarafından Andras Timar's avatar Andras Timar

fix some color mismatch in high contract mode on Windows

Change-Id: Ifadcddf0c6c0a0e33c80ac47dd64af6b56387d30
üst 01a55d56
......@@ -24,6 +24,8 @@
#include <comphelper/processfactory.hxx>
#include <unotools/misccfg.hxx>
#include <officecfg/Office/Common.hxx>
#include <string.h>
#include <limits.h>
......@@ -2814,6 +2816,11 @@ void WinSalFrame::UpdateSettings( AllSettings& rSettings )
pSVData->maNWFData.mnMenuFormatBorderY = 0;
pSVData->maNWFData.maMenuBarHighlightTextColor = Color( COL_TRANSPARENT );
GetSalData()->mbThemeMenuSupport = FALSE;
if (officecfg::Office::Common::Accessibility::AutoDetectSystemHC::get())
{
aStyleSettings.SetShadowColor( ImplWinColorToSal( GetSysColor( COLOR_ACTIVEBORDER ) ) );
aStyleSettings.SetWorkspaceColor( ImplWinColorToSal( GetSysColor( COLOR_MENU ) ) );
}
aStyleSettings.SetMenuColor( ImplWinColorToSal( GetSysColor( COLOR_MENU ) ) );
aStyleSettings.SetMenuBarColor( aStyleSettings.GetMenuColor() );
aStyleSettings.SetMenuBarRolloverColor( aStyleSettings.GetHighlightColor() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment