mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
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:
@@ -736,7 +736,9 @@ fe_apply_gtk3_theme_with_reload (const char *theme_name, gboolean force_reload,
|
|||||||
gtk_style_context_add_provider_for_screen (
|
gtk_style_context_add_provider_for_screen (
|
||||||
screen,
|
screen,
|
||||||
GTK_STYLE_PROVIDER (gtk3_theme_provider),
|
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);
|
gtk_style_context_reset_widgets (screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user