[Libreoffice-commits] core.git: vcl/win

Andras Timar andras.timar at collabora.com
Tue Feb 4 12:37:40 PST 2014


 vcl/win/source/window/salframe.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit b6e68923e2909ade7b69e55519220b9cf9dfc60b
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue Feb 4 12:25:12 2014 -0800

    fix some color mismatch in high contract mode on Windows
    
    Change-Id: Ifadcddf0c6c0a0e33c80ac47dd64af6b56387d30

diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 817d277..a0ada8b 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() );


More information about the Libreoffice-commits mailing list