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

ToggleButtonColors

Represents the container and content colors used in a toggle button in different states.

Source set: Common
public class ToggleButtonColors(
    public val containerColor: Color,
    public val contentColor: Color,
    public val disabledContainerColor: Color,
    public val disabledContentColor: Color,
    public val checkedContainerColor: Color,
    public val checkedContentColor: Color,
)

Represents the container and content colors used in a toggle button in different states.

Parameters

containerColor the container color of this ToggleButton when enabled.
contentColor the content color of this ToggleButton when enabled.
disabledContainerColor the container color of this ToggleButton when not enabled.
disabledContentColor the content color of this ToggleButton when not enabled.
checkedContainerColor the container color of this ToggleButton when checked.
checkedContentColor the content color of this ToggleButton when checked.

Functions

copy

Source set: Common
public fun copy(
        containerColor: Color = this.containerColor,
        contentColor: Color = this.contentColor,
        disabledContainerColor: Color = this.disabledContainerColor,
        disabledContentColor: Color = this.disabledContentColor,
        checkedContainerColor: Color = this.checkedContainerColor,
        checkedContentColor: Color = this.checkedContentColor,
    ): ToggleButtonColors

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

Content updated: