mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Fixed imported GTK3 theme precedence so theme CSS can override ZoiteChat app-level CSS (including button background rules) by changing the provider priority from GTK_STYLE_PROVIDER_PRIORITY_APPLICATION to GTK_STYLE_PROVIDER_PRIORITY_USER.
Updated the inline comment to document why user-level priority is needed for correct themed button styling behavior.
This commit is contained in:
@@ -736,9 +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),
|
||||
/* Use application priority so imported GTK3 themes consistently
|
||||
* override the desktop theme for ZoiteChat widgets. */
|
||||
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
|
||||
/* Use user priority so imported GTK3 themes can also override
|
||||
* ZoiteChat's own application CSS (for example, button backgrounds). */
|
||||
GTK_STYLE_PROVIDER_PRIORITY_USER);
|
||||
gtk_style_context_reset_widgets (screen);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user