lookup_color


Description:

[ Version ( since = "2.10" ) ]
public bool lookup_color (string color_name, out Color color)

Looks up color_name in the style’s logical color mappings, filling in color and returning true if found, otherwise returning false.

Note:

Use lookup_color instead

Do not cache the found mapping, because it depends on the Style and might change when a theme switch occurs.

Parameters:

this

a Style

color_name

the name of the logical color to look up

color

the Color to fill in

Returns:

true if the mapping was found.