diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-10-27 20:19:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-10-28 10:05:08 +0200 |
commit | 90c1a0ca864a686ca1d0846d9656415e94baf410 (patch) | |
tree | e7a0f0dc21e91264a2333526baccafe2ae166852 /vcl/osx/salframe.cxx | |
parent | 50ecf0f53aabb204df00b052a442def33dd16028 (diff) |
macos: use system linkColor for hyperlinks
so there is something readable under dark mode, use purpleColor like
gecko does for visited links as there isn't something available
Change-Id: I36e1b56d505bc8add36f2828fca60b898f9f2d37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141945
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/osx/salframe.cxx')
-rw-r--r-- | vcl/osx/salframe.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx index 3af750df4c7a..14d3b8314012 100644 --- a/vcl/osx/salframe.cxx +++ b/vcl/osx/salframe.cxx @@ -1266,6 +1266,11 @@ SAL_WNODEPRECATED_DECLARATIONS_POP aStyleSettings.GetHighlightTextColor(), mpNSWindow ) ); aStyleSettings.SetHighlightTextColor( aHighlightTextColor ); + aStyleSettings.SetLinkColor(getColor( [NSColor linkColor], + aStyleSettings.GetLinkColor(), mpNSWindow ) ); + aStyleSettings.SetVisitedLinkColor(getColor( [NSColor purpleColor], + aStyleSettings.GetVisitedLinkColor(), mpNSWindow ) ); + #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" Color aMenuHighlightColor( getColor( [NSColor selectedMenuItemColor], |