diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2023-05-17 16:48:30 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2023-05-23 09:44:21 +0200 |
commit | 258686a58f909ab04c7281c05f15882eb400748e (patch) | |
tree | bc80185e801622d30b2be2fe3b6f182aad1fc316 /vcl/osx/salframe.cxx | |
parent | dc11f5b151e1a2ea2623fc8cf806a400763955d9 (diff) |
Resolves tdf#145080 - Use accent color for focused cell
Accent color added but effectively working only on macOS
See inline comments for gtk, qt, and win
Change-Id: I1e4a729331735683921f94b27bb2bb02555c0165
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151887
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'vcl/osx/salframe.cxx')
-rw-r--r-- | vcl/osx/salframe.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx index ea514b786ada..b4a2d07463b8 100644 --- a/vcl/osx/salframe.cxx +++ b/vcl/osx/salframe.cxx @@ -1384,6 +1384,10 @@ SAL_WNODEPRECATED_DECLARATIONS_POP vcl::Font aTooltipFont(getFont([NSFont toolTipsFontOfSize: 0], nDPIY, aAppFont)); aStyleSettings.SetHelpFont(aTooltipFont); + Color aAccentColor( getColor( [NSColor controlAccentColor], + aStyleSettings.GetAccentColor(), mpNSWindow ) ); + aStyleSettings.SetAccentColor( aAccentColor ); + Color aHighlightColor( getColor( [NSColor selectedTextBackgroundColor], aStyleSettings.GetHighlightColor(), mpNSWindow ) ); aStyleSettings.SetHighlightColor( aHighlightColor ); |