set_color_primary
Description:
public CssProvider? set_color_primary (Widget window, RGBA color, int priority = STYLE_PROVIDER_PRIORITY_APPLICATION)
Applies colorPrimary property to the window. The colorPrimary property currently changes the color of the Gtk.HeaderBar and it's children so that the application window can have a so-called "brand color".
Note that this currently only works with the default stylesheet that elementary OS uses.
Parameters:
window |
the widget to apply the color, for most cases the widget will be actually the Gtk.Window itself |
color |
the color to apply |
priority |
priorty of change, by default Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION |
Returns:
the added Gtk.CssProvider, or null in case the parsing of stylesheet failed. |
Namespace: Granite.Widgets.Utils
Package: granite-7