API reference
API reference
Select your platform
No SDKs available
No versions available

SideNavItemColors Class

Modifiers: final
Represents the color used by a null.SpatialSideNavItem in different states.

Constructors

SideNavItemColors ( selectedBackgroundColor , selectedPrimaryColor , selectedSecondaryColor , unselectedBackgroundColor , unselectedPrimaryColor , unselectedSecondaryColor )
create an instance with arbitrary colors. See SideNavItemDefaults.colors for the default implementation.
Signature
constructor(selectedBackgroundColor: Color, selectedPrimaryColor: Color, selectedSecondaryColor: Color, unselectedBackgroundColor: Color, unselectedPrimaryColor: Color, unselectedSecondaryColor: Color)
Parameters
selectedBackgroundColor: Color
  the color to use for the RadioButton when selected and enabled.
selectedPrimaryColor: Color
  the color to use for the RadioButton's inner dot when selected and enabled.
selectedSecondaryColor: Color
  the color to use for the RadioButton when unselected and enabled.
unselectedBackgroundColor: Color
  the color to use for the RadioButton when disabled and selected.
unselectedPrimaryColor: Color
  the color to use for the RadioButton's inner dot when disabled and selected.
unselectedSecondaryColor: Color
  the color to use for the RadioButton when disabled and not selected.

Properties

selectedBackgroundColor : Color
[Get]
Signature
val selectedBackgroundColor: Color
selectedPrimaryColor : Color
[Get]
Signature
val selectedPrimaryColor: Color
selectedSecondaryColor : Color
[Get]
Signature
val selectedSecondaryColor: Color
unselectedBackgroundColor : Color
[Get]
Signature
val unselectedBackgroundColor: Color
unselectedPrimaryColor : Color
[Get]
Signature
val unselectedPrimaryColor: Color
unselectedSecondaryColor : Color
[Get]
Signature
val unselectedSecondaryColor: Color

Functions

copy ( selectedBackgroundColor , selectedPrimaryColor , selectedSecondaryColor , unselectedBackgroundColor , unselectedPrimaryColor , unselectedSecondaryColor )
Returns a copy of this RadioButtonColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
Signature
fun copy(selectedBackgroundColor: Color, selectedPrimaryColor: Color, selectedSecondaryColor: Color, unselectedBackgroundColor: Color, unselectedPrimaryColor: Color, unselectedSecondaryColor: Color): SideNavItemColors
Parameters
selectedBackgroundColor: Color
selectedPrimaryColor: Color
selectedSecondaryColor: Color
unselectedBackgroundColor: Color
unselectedPrimaryColor: Color
unselectedSecondaryColor: Color
equals ( other )
Signature
open operator override fun equals(other: Any?): Boolean
Parameters
other: Any?
Returns
Boolean
hashCode ()
Signature
open override fun hashCode(): Int
Returns
Int