From bf349a27b1f91390855d1f0e5fb89fe83d77f8b0 Mon Sep 17 00:00:00 2001 From: deepend Date: Thu, 26 Feb 2026 08:21:15 -0700 Subject: [PATCH] Updated GTK3 theme provider registration to use GTK_STYLE_PROVIDER_PRIORITY_APPLICATION (instead of GTK_STYLE_PROVIDER_PRIORITY_THEME) when applying imported themes, so the selected GTK3 theme consistently overrides the system theme for ZoiteChat widgets. Added an inline code comment explaining the priority choice and the consistency intent. --- src/fe-gtk/fe-gtk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index aa31c59a..3b4f048e 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -736,7 +736,9 @@ fe_apply_gtk3_theme_with_reload (const char *theme_name, gboolean force_reload, gtk_style_context_add_provider_for_screen ( screen, GTK_STYLE_PROVIDER (gtk3_theme_provider), - GTK_STYLE_PROVIDER_PRIORITY_THEME); + /* Use application priority so imported GTK3 themes consistently + * override the desktop theme for ZoiteChat widgets. */ + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); gtk_style_context_reset_widgets (screen); }