mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
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:
@@ -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 (>k3_theme_provider);
|
||||
g_clear_pointer (>k3_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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user