summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2014-02-04 12:25:12 -0800
committerAndras Timar <andras.timar@collabora.com>2014-02-04 12:37:42 -0800
commitb6e68923e2909ade7b69e55519220b9cf9dfc60b (patch)
tree09747fd527396b80499347e66ec41485c1854c46 /vcl/win
parent01a55d560509d9fb8027a330040510e767f895a2 (diff)
fix some color mismatch in high contract mode on Windows
Change-Id: Ifadcddf0c6c0a0e33c80ac47dd64af6b56387d30
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/window/salframe.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 817d277d96bf..a0ada8b8ea63 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -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() );