vcl/unx/gtk3/salnativewidgets-gtk.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 4e596953975f149f866b295209b597a50de41d93 Author: Sahil Gautam <sahil.gautam.ext...@allotropia.de> AuthorDate: Thu Dec 26 00:03:59 2024 +0530 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Tue Feb 25 04:20:44 2025 +0100 Set StyleSettings::DisableColor value in GTK Themes uses StyleSettings::DisableColor value as the default color value for disabled UI elements. Set it in the UpdateSettings function for GTK. Change-Id: Ida71a0aaff2e05309d9b8c03d15b3db8ed5a7aab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179409 Reviewed-by: Sahil Gautam <sahil.gautam.ext...@allotropia.de> Tested-by: Jenkins (cherry picked from commit d2bf91d9594e38552e030b66dfb71084d0fb2664) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182132 Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/vcl/unx/gtk3/salnativewidgets-gtk.cxx b/vcl/unx/gtk3/salnativewidgets-gtk.cxx index 0bd56c02cb9f..e92523b002f7 100644 --- a/vcl/unx/gtk3/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/salnativewidgets-gtk.cxx @@ -2478,6 +2478,13 @@ bool GtkSalGraphics::updateSettings(AllSettings& rSettings) aShadowColor.DecreaseLuminance(64); aStyleSet.SetShadowColor(aShadowColor); + ::Color aDisabledColor(aBackFieldColor); + if (aBackFieldColor.GetLuminance() > aBackColor.GetLuminance()) + aDisabledColor.IncreaseLuminance(8); + else + aDisabledColor.DecreaseLuminance(8); + aStyleSet.SetDisableColor(aDisabledColor); + aContextState.restore(); #if !GTK_CHECK_VERSION(4, 0, 0) g_object_unref( pCStyle );