diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-22 16:03:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-25 10:07:37 +0200 |
commit | f801664dc5be75e4a89f1658efa3039b2dfa5367 (patch) | |
tree | a4e7e599a36018865a202b489f3de2e79a7309ae /vcl/unx | |
parent | 752dd8f5299cc2d661becd3b694ede1d037d3b84 (diff) |
Derive ActiveColor as a brighter HighlightColor
and use it opaque in thumbnail views so the selected item is
always Highlighted but appears brighter when hovered over, leaving
the non-selected items using transparent Highlight
Change-Id: If0cbc05b779d230332e821aa7fac68a08ac40c41
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101184
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx index e7ec07754256..465ce68a620e 100644 --- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx @@ -3097,6 +3097,12 @@ bool GtkSalGraphics::updateSettings(AllSettings& rSettings) ::Color aHighlightTextColor = getColor( text_color ); aStyleSet.SetHighlightColor( aHighlightColor ); aStyleSet.SetHighlightTextColor( aHighlightTextColor ); + // make active like highlight, except with a small contrast. Note, see + // a GtkListBoxRow in a GtkStackSidebar for a gtk widget with a + // difference between highlighted and highlighted with focus. + aHighlightColor.IncreaseLuminance(16); + aStyleSet.SetActiveColor( aHighlightColor ); + aStyleSet.SetActiveTextColor( aHighlightTextColor ); // field background color GdkRGBA field_background_color; |