vcl/unx/gtk3/custom-theme.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 05ca63a7a60f81c3dfb8b966cc321bbb2ce72e88 Author: Sahil Gautam <[email protected]> AuthorDate: Fri Jan 31 11:59:58 2025 +0530 Commit: Sahil Gautam <[email protected]> CommitDate: Mon Jan 26 09:50:33 2026 +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 <[email protected]> (cherry picked from commit 94eb08183ac2be67f11d45e6ad8e703d39115246) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198084 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Sahil Gautam <[email protected]> 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 } }
