summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-01-19 07:49:24 -0500
committerTomaž Vajngerl <quikee@gmail.com>2019-11-09 17:35:21 +0100
commit8a425fbd9c6b75b09672e0ce18f43162d9eda360 (patch)
tree7f862bf2c494aeef555eb5fb612908c94f81b6eb /vcl/unx
parenta0ebc6f898992dbc0da9f252911da867dfdfd741 (diff)
custom widgets: support custom action button text colors
Change-Id: I314183a1d6434c043183a600740c786e22a67503 Reviewed-on: https://gerrit.libreoffice.org/82276 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
index 57fff4c6a473..5680ddf71bc2 100644
--- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
@@ -2999,6 +2999,8 @@ bool GtkSalGraphics::updateSettings(AllSettings& rSettings)
::Color aTextColor = getColor( text_color );
aStyleSet.SetDialogTextColor( aTextColor );
aStyleSet.SetButtonTextColor( aTextColor );
+ aStyleSet.SetDefaultActionButtonTextColor(aTextColor);
+ aStyleSet.SetActionButtonTextColor(aTextColor);
aStyleSet.SetRadioCheckTextColor( aTextColor );
aStyleSet.SetGroupTextColor( aTextColor );
aStyleSet.SetLabelTextColor( aTextColor );
@@ -3025,6 +3027,8 @@ bool GtkSalGraphics::updateSettings(AllSettings& rSettings)
style_context_set_state(pStyle, GTK_STATE_FLAG_PRELIGHT);
gtk_style_context_get_color(pStyle, gtk_style_context_get_state(pStyle), &text_color);
aTextColor = getColor( text_color );
+ aStyleSet.SetButtonRolloverTextColor(aTextColor);
+ aStyleSet.SetActionButtonRolloverTextColor(aTextColor);
aStyleSet.SetFieldRolloverTextColor( aTextColor );
aContextState.restore();