ColorGroup.NamedColor
From Xojo Documentation
Shared Method
Returns the specified named color.
Notes
Raises these exceptions:
- UnsupportedOperationException on platforms that don't support named colors.
- InvalidArgumentException when passing a name that isn't available on the current platform.
Apple provides documentation for named colors for MacOS.
Additionally primaryContentBackgroundColor and secondaryContentBackgroundColor are valid names specifically for the macOS alternating table row background colors.
Sample Code
Set the label color:
Me.TextColor = ColorGroup.NamedColor("labelColor")