diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2022-09-16 10:30:01 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-09-16 12:39:17 +0200 |
commit | b855f9d430c4dce2936e7bd1208159bc38d5b199 (patch) | |
tree | 14cdc275a2fcd483844128e16c7f39a3ef9d0b67 /vcl | |
parent | d9706878b7352b985b3a38d47b30a6e872a266a2 (diff) |
tdf#137341 gtk: Set missing style text colors from theme
commit 8d11b953c0a69f4f5eb5ca42dec3812a62d0cd0f
Date: Sun Feb 23 21:11:05 2020 +0100
tdf#125532: White text on default/action buttons and selected tabs on macOS
had introduced various new text colors to the style
settings, but some were not set from the theme for gtk.
Add the missing ones.
Change-Id: I1bd7ce358626b3f4ff1d6f2794d5c0f19f78a668
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140058
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/salnativewidgets-gtk.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/salnativewidgets-gtk.cxx b/vcl/unx/gtk3/salnativewidgets-gtk.cxx index 3bbc9365f46d..6fc1be3f8257 100644 --- a/vcl/unx/gtk3/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/salnativewidgets-gtk.cxx @@ -2338,10 +2338,16 @@ bool GtkSalGraphics::updateSettings(AllSettings& rSettings) style_context_set_state(pStyle, GTK_STATE_FLAG_PRELIGHT); style_context_get_color(pStyle, &text_color); aTextColor = getColor(text_color); + aStyleSet.SetDefaultButtonTextColor(aTextColor); aStyleSet.SetDefaultButtonRolloverTextColor(aTextColor); + aStyleSet.SetDefaultButtonPressedRolloverTextColor(aTextColor); aStyleSet.SetButtonRolloverTextColor(aTextColor); aStyleSet.SetDefaultActionButtonRolloverTextColor(aTextColor); + aStyleSet.SetDefaultActionButtonPressedRolloverTextColor(aTextColor); aStyleSet.SetActionButtonRolloverTextColor(aTextColor); + aStyleSet.SetActionButtonPressedRolloverTextColor(aTextColor); + aStyleSet.SetFlatButtonTextColor(aTextColor); + aStyleSet.SetFlatButtonPressedRolloverTextColor(aTextColor); aStyleSet.SetFlatButtonRolloverTextColor(aTextColor); aStyleSet.SetFieldRolloverTextColor(aTextColor); |