ColorGroup

From Xojo Documentation

Class (inherits from Object)

New in 2019r3

The ColorGroup class allows you to do dynamic light/dark target color selection.

Properties
UndefinedColorCallback
Methods
AddColor AddNamedColor Name
AddColorPair Mode Values
Enumerations
Modes Platforms
Constructors

Constructor(defaultColor as Color)


Constructor(defaultLightColor as Color, defaultDarkColor as Color)


Constructor(name as Text)


Shared Methods
NamedColor
Delegates
UndefinedColorDelegate

Notes

Operator_Convert

A ColorGroup is automatically converted to the correct color for the current platform/appearance at the current time.

A Color is automatically converted to a ColorGroup with the color as the defaultColor.

A String or Text is automatically converted to a ColorGroup with the name.

Operator_Compare

Operator_Compare can be used to compare the current state of the ColorGroup to a Color value.

See Also

Color data type; UserGuide:iOS Color Groups topic