for windows HighContrast use COLOR_HOTLIGHT for hyperlink color
use the same thing for both unvisited and visited
Change-Id: Icce13ccb88c7ca35e655f01e8ebb8ac92869753c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141729
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index 4307ed1..42c9a80 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -2712,6 +2712,13 @@ void WinSalFrame::UpdateSettings( AllSettings& rSettings )
Color aHighlightButtonTextColor = aStyleSettings.GetHighContrastMode() ?
aHighlightTextColor : aControlTextColor;
if (aStyleSettings.GetHighContrastMode())
{
Color aLinkColor(ImplWinColorToSal(GetSysColor(COLOR_HOTLIGHT)));
aStyleSettings.SetLinkColor(aLinkColor);
aStyleSettings.SetVisitedLinkColor(aLinkColor);
}
aStyleSettings.SetDefaultButtonTextColor(aHighlightButtonTextColor);
aStyleSettings.SetButtonTextColor(aControlTextColor);
aStyleSettings.SetDefaultActionButtonTextColor(aHighlightButtonTextColor);