CssProvider.loadNamed

void loadNamed(string name, string variant = null)

Loads a theme from the usual theme paths.

The actual process of finding the theme might change between releases, but it is guaranteed that this function uses the same mechanism to load the theme that GTK uses for loading its own theme.

Parameters

nameA theme name
variantvariant to load, for example, "dark", or null for the default