vcl/unx/gtk3/custom-theme.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 94eb08183ac2be67f11d45e6ad8e703d39115246 Author: Sahil Gautam <sahil.gautam.ext...@allotropia.de> AuthorDate: Fri Jan 31 11:59:58 2025 +0530 Commit: Sahil Gautam <sahil.gautam.ext...@allotropia.de> CommitDate: Fri Jan 31 08:58:40 2025 +0100 tdf#164950 Set GtkCssProvider at APPLICATION level, not USER - when set at the user level, the set_background() calls cannot override the theme settings as USER level has higher priority than APPLICATION level. Change-Id: If8819b5838f6f9ff1cf5ec83e380b7546aafce93 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180977 Tested-by: Jenkins Reviewed-by: Sahil Gautam <sahil.gautam.ext...@allotropia.de> diff --git a/vcl/unx/gtk3/custom-theme.cxx b/vcl/unx/gtk3/custom-theme.cxx index 13dcad562b1c..71bb0ec843b8 100644 --- a/vcl/unx/gtk3/custom-theme.cxx +++ b/vcl/unx/gtk3/custom-theme.cxx @@ -109,10 +109,11 @@ void ApplyCustomTheme(GdkScreen* pScreen, GtkCssProvider** pCustomThemeProvider) #if GTK_CHECK_VERSION(4, 0, 0) gtk_style_context_add_provider_for_display(pGdkDisplay, GTK_STYLE_PROVIDER(*pCustomThemeProvider), - GTK_STYLE_PROVIDER_PRIORITY_USER); + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); #else - gtk_style_context_add_provider_for_screen( - pScreen, GTK_STYLE_PROVIDER(*pCustomThemeProvider), GTK_STYLE_PROVIDER_PRIORITY_USER); + gtk_style_context_add_provider_for_screen(pScreen, + GTK_STYLE_PROVIDER(*pCustomThemeProvider), + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); #endif } }