diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-10-24 10:57:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-10-24 13:11:06 +0200 |
commit | 87aef8ff9fa55dc8b51c6eb8ae07ab34236503c1 (patch) | |
tree | 1913a62948aad955a1773c91f7f94b72e9bb7135 /vcl/win | |
parent | bc919965d7709c676f7ad7ec6f133fa2e906e75e (diff) |
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>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/window/salframe.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index 4307ed12ecbb..42c9a802c232 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); |