🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

SegmentedButtonColors

The different colors used in parts of the SegmentedButton in different states

Source set: Common
public class SegmentedButtonColors(
    // enabled & active
    public val activeContainerColor: Color,
    public val activeContentColor: Color,
    public val activeBorderColor: Color,
    // enabled & inactive
    public val inactiveContainerColor: Color,
    public val inactiveContentColor: Color,
    public val inactiveBorderColor: Color,
    // disable & active
    public val disabledActiveContainerColor: Color,
    public val disabledActiveContentColor: Color,
    public val disabledActiveBorderColor: Color,
    // disable & inactive
    public val disabledInactiveContainerColor: Color,
    public val disabledInactiveContentColor: Color,
    public val disabledInactiveBorderColor: Color,
)

The different colors used in parts of the SegmentedButton in different states

Parameters

activeContainerColor the color used for the container when enabled and active
activeContentColor the color used for the content when enabled and active
activeBorderColor the color used for the border when enabled and active
inactiveContainerColor the color used for the container when enabled and inactive
inactiveContentColor the color used for the content when enabled and inactive
inactiveBorderColor the color used for the border when enabled and active
disabledActiveContainerColor the color used for the container when disabled and active
disabledActiveContentColor the color used for the content when disabled and active
disabledActiveBorderColor the color used for the border when disabled and active
disabledInactiveContainerColor the color used for the container when disabled and inactive
disabledInactiveContentColor the color used for the content when disabled and inactive
disabledInactiveBorderColor the color used for the border when disabled and inactive

Functions

copy

Source set: Common
public fun copy(
        activeContainerColor: Color = this.activeContainerColor,
        activeContentColor: Color = this.activeContentColor,
        activeBorderColor: Color = this.activeBorderColor,
        inactiveContainerColor: Color = this.inactiveContainerColor,
        inactiveContentColor: Color = this.inactiveContentColor,
        inactiveBorderColor: Color = this.inactiveBorderColor,
        disabledActiveContainerColor: Color = this.disabledActiveContainerColor,
        disabledActiveContentColor: Color = this.disabledActiveContentColor,
        disabledActiveBorderColor: Color = this.disabledActiveBorderColor,
        disabledInactiveContainerColor: Color = this.disabledInactiveContainerColor,
        disabledInactiveContentColor: Color = this.disabledInactiveContentColor,
        disabledInactiveBorderColor: Color = this.disabledInactiveBorderColor,
    ): SegmentedButtonColors

Returns a copy of this ChipColors, optionally overriding some of the ues. This uses the Color.Unspecified to mean “use the value from the source”

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

Content updated: