get_color


Description:

[ Version ( since = "0.15.2" ) ]
public unowned string? get_color (ColorKind kind, ColorSchemeKind scheme_kind)

Retrieve a color of the given kind that matches scheme_kind.

If a color has no scheme preference defined, it will be returned for either scheme type, unless a more suitable color was found.

Parameters:

this

an Branding instance.

kind

the ColorKind, e.g. as_color_kind_primary .

scheme_kind

Color scheme preference for the color, e.g. as_color_scheme_kind_light

Returns:

The HTML color code of the found color, or null if no color was found.