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.
This commit is contained in:
2026-02-26 08:21:15 -07:00
parent 90ada474a0
commit bf349a27b1

View File

@@ -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);
}