Fixed GTK3 theme teardown to force a full widget style refresh after removing ZoiteChat’s GTK3 theme provider, so switching back to system theme updates existing windows/widgets immediately.

Changed imported GTK3 theme provider registration from GTK_STYLE_PROVIDER_PRIORITY_APPLICATION to GTK_STYLE_PROVIDER_PRIORITY_THEME, so GTK3 theme rules apply correctly across themed controls (including menu/dropdown-related GTK theme elements) instead of being overly overridden by app-priority styling.
This commit is contained in:
2026-02-26 02:22:00 -07:00
parent d21a5c1b60
commit 252f4a3c07

View File

@@ -614,6 +614,7 @@ fe_apply_gtk3_theme (const char *theme_name, GError **error)
gtk_style_context_remove_provider_for_screen (
screen,
GTK_STYLE_PROVIDER (gtk3_theme_provider));
gtk_style_context_reset_widgets (screen);
}
g_clear_object (&gtk3_theme_provider);
g_clear_pointer (&gtk3_theme_provider_name, g_free);
@@ -672,7 +673,7 @@ fe_apply_gtk3_theme (const char *theme_name, GError **error)
gtk_style_context_add_provider_for_screen (
screen,
GTK_STYLE_PROVIDER (gtk3_theme_provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
GTK_STYLE_PROVIDER_PRIORITY_THEME);
gtk_style_context_reset_widgets (screen);
}