UI.GetThemeColor

static Color GetThemeColor(UIColor colorCategory)

This allows you to inspect the current normal color of the theme color category! If you set the color with UI.ColorScheme, this will be one of the generated colors, and not necessarily the color that was provided there.

   
UIColor colorCategory The category of UI elements that are affected by this theme color.
RETURNS: Color The gamma space color for the theme color category in its normal state.
static Color GetThemeColor(UIColor colorCategory, UIColorState colorState)

This allows you to inspect the current color of the theme color category in a specific state! If you set the color with UI.ColorScheme, or without specifying a state, this may be a generated color, and not necessarily the color that was provided there.

   
UIColor colorCategory The category of UI elements that are affected by this theme color.
UIColorState colorState The state of the UI element this color applies to.
RETURNS: Color The gamma space color for the theme color category in the indicated state.
static Color GetThemeColor(UIColor colorCategory, Color colorGamma)

This overload is obsolete, and will be removed soon.

   
UIColor colorCategory The category of UI elements that are affected by this theme color.
Color colorGamma Unused.
RETURNS: Color The gamma space color for the theme color category in the indicated state.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!