registerColorScheme

fun registerColorScheme(scheme: AuroraColorScheme, associationKind: ColorSchemeAssociationKind = ColorSchemeAssociationKind.Fill, vararg states: ComponentState)

Registers the color scheme to be used for the specified visual area of controls under the specified states. For example, if the light orange scheme has to be used for gradient fill for rollover selected and rollover controls, the parameters would be:

  • scheme=light orange scheme

associationKind=ColorSchemeAssociationKind.Fill

states=ComponentState.RolloverSelected, ComponentState.RolloverUnselected

Parameters

scheme

Color scheme.

associationKind

Color scheme association kind that specifies the visual areas of controls to be painted with this color scheme.

states

Component states that further restrict the usage of the specified color scheme.