summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2023-05-17 16:48:30 +0200
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2023-05-23 09:44:21 +0200
commit258686a58f909ab04c7281c05f15882eb400748e (patch)
treebc80185e801622d30b2be2fe3b6f182aad1fc316 /vcl/unx
parentdc11f5b151e1a2ea2623fc8cf806a400763955d9 (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/unx')
-rw-r--r--vcl/unx/gtk3/salnativewidgets-gtk.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/salnativewidgets-gtk.cxx b/vcl/unx/gtk3/salnativewidgets-gtk.cxx
index b5efe1b59ddc..425c642d45fd 100644
--- a/vcl/unx/gtk3/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/salnativewidgets-gtk.cxx
@@ -2420,6 +2420,7 @@ bool GtkSalGraphics::updateSettings(AllSettings& rSettings)
::Color aHighlightColor = style_context_get_background_color(pCStyle);
style_context_get_color(pCStyle, &text_color);
::Color aHighlightTextColor = getColor( text_color );
+ aStyleSet.SetAccentColor( aHighlightColor ); // https://debugpointnews.com/gnome-native-accent-colour-announcement/
aStyleSet.SetHighlightColor( aHighlightColor );
aStyleSet.SetHighlightTextColor( aHighlightTextColor );
aStyleSet.SetListBoxWindowHighlightColor( aHighlightColor );