summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-29 12:55:20 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-29 12:58:03 +0000
commit9a1e401c082e66ca4d66218e61e2690f89340762 (patch)
treed09f2bc7819bd4d3f4aec1d58284babe8eb3e4b6
parent482c655e30a121971076eaa52d5948e8c7988557 (diff)
Related: tdf#90214 gtk2 use a darkcolor based on the theme
this is similar to e6d6e35320984fe4198314e3ea3a91ead6b41392 for gtk3 where... Related: rhbz#1287593 issue 8, set a 'dark shadow' color based on the theme pick something that is supposed to be a large contrast against the bg but is different from the fg Change-Id: If2d3a1b485dc5ec6be58d434394499cf5f851d0e (cherry picked from commit f50270ea5cb20c589edc2111e92412ffff4734ca)
-rw-r--r--vcl/unx/gtk/salnativewidgets-gtk.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx
index 5c70c1eb062a..b9bb56a7027f 100644
--- a/vcl/unx/gtk/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx
@@ -3966,7 +3966,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
// background colors
Color aBackColor = getColor( pStyle->bg[GTK_STATE_NORMAL] );
- Color aBackFieldColor = getColor( pStyle->base[ GTK_STATE_NORMAL ] );
+ Color aBackFieldColor = getColor( pStyle->base[GTK_STATE_NORMAL] );
aStyleSet.Set3DColors( aBackColor );
aStyleSet.SetFaceColor( aBackColor );
aStyleSet.SetDialogColor( aBackColor );
@@ -3975,6 +3975,10 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
aStyleSet.SetWindowColor( aBackFieldColor );
aStyleSet.SetCheckedColorSpecialCase( );
+ // Dark shadow color
+ Color aDarkShadowColor = getColor( pStyle->fg[GTK_STATE_INSENSITIVE] );
+ aStyleSet.SetDarkShadowColor( aDarkShadowColor );
+
// highlighting colors
Color aHighlightColor = getColor( pStyle->base[GTK_STATE_SELECTED] );
Color aHighlightTextColor = getColor( pStyle->text[GTK_STATE_SELECTED] );