loadNamed

open fun loadNamed(name: String, variant: String? = 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

name

A theme name

variant

variant to load, for example, "dark", or null for the default