Commit 40e8ec35 authored by Adrien Plazas's avatar Adrien Plazas Committed by Alexander Mikhaylenko
Browse files

style: Add _OVERRIDE to the style name

This renames HDY_STYLE_PROVIDER_PRIORITY as
HDY_STYLE_PROVIDER_PRIORITY_OVERRIDE to better match its goal.
parent 043c444f
Pipeline #52421 passed with stages
in 21 minutes and 27 seconds
......@@ -3,7 +3,7 @@
* very specific style which collides with common themes, and we need to
* override what they do.
*
* It will be loaded with the HDY_STYLE_PROVIDER_PRIORITY priority,
* It will be loaded with the HDY_STYLE_PROVIDER_PRIORITY_OVERRIDE priority,
* which corresponds to GTK_STYLE_PROVIDER_PRIORITY_SETTINGS + 1, meaning its
* priority is higher than themes and settings, but lower than applications and
* user provided styles.
......
......@@ -15,9 +15,10 @@
G_BEGIN_DECLS
/* The style provider priority to use for libhandy widgets custom styling. It is
* higher than settings but lower than applications, so application developers
* higher than themes and settings, allowing to override theme defaults, but
* lower than applications and user provided styles, so application developers
* can nonetheless apply custom styling on top of it. */
#define HDY_STYLE_PROVIDER_PRIORITY (GTK_STYLE_PROVIDER_PRIORITY_SETTINGS + 1)
#define HDY_STYLE_PROVIDER_PRIORITY_OVERRIDE (GTK_STYLE_PROVIDER_PRIORITY_SETTINGS + 1)
void hdy_style_init (void);
......
......@@ -52,7 +52,7 @@ hdy_style_init (void)
gtk_css_provider_load_from_resource (css_override_provider, "/sm/puri/handy/style/handy-override.css");
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
GTK_STYLE_PROVIDER (css_override_provider),
HDY_STYLE_PROVIDER_PRIORITY);
HDY_STYLE_PROVIDER_PRIORITY_OVERRIDE);
g_once_init_leave (&guard, 1);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment