IconToggleButtonColors

Class
Android
public class IconToggleButtonColors(
    public val checkedContainerColor: Color,
    public val checkedContentColor: Color,
    public val uncheckedContainerColor: Color,
    public val uncheckedContentColor: Color,
    public val disabledCheckedContainerColor: Color,
    public val disabledCheckedContentColor: Color,
    public val disabledUncheckedContainerColor: Color,
    public val disabledUncheckedContentColor: Color,
)

Represents the different container and content colors used for IconToggleButton in various states, that are checked, unchecked, enabled and disabled.

Parameters

checkedContainerColor Container or background color when the toggle button is checked
checkedContentColor Color of the content (icon) when the toggle button is checked
uncheckedContainerColor Container or background color when the toggle button is unchecked
uncheckedContentColor Color of the content (icon) when the toggle button is unchecked
disabledCheckedContainerColor Container or background color when the toggle button is disabled and checked
disabledCheckedContentColor Color of content (icon) when the toggle button is disabled and checked
disabledUncheckedContainerColor Container or background color when the toggle button is disabled and unchecked
disabledUncheckedContentColor Color of the content (icon) when the toggle button is disabled and unchecked

Functions

public fun copy(
        checkedContainerColor: Color = this.checkedContainerColor,
        checkedContentColor: Color = this.checkedContentColor,
        uncheckedContainerColor: Color = this.uncheckedContainerColor,
        uncheckedContentColor: Color = this.uncheckedContentColor,
        disabledCheckedContainerColor: Color = this.disabledCheckedContainerColor,
        disabledCheckedContentColor: Color = this.disabledCheckedContentColor,
        disabledUncheckedContainerColor: Color = this.disabledUncheckedContainerColor,
        disabledUncheckedContentColor: Color = this.disabledUncheckedContentColor,
    ): IconToggleButtonColors

Returns a copy of this IconToggleButtonColors optionally overriding some of the values.

Parameters

checkedContainerColor Container or background color when the toggle button is checked
checkedContentColor Color of the content (text or icon) when the toggle button is checked
uncheckedContainerColor Container or background color when the toggle button is unchecked
uncheckedContentColor Color of the content (text or icon) when the toggle button is unchecked
disabledCheckedContainerColor Container or background color when the toggle button is disabled and checked
disabledCheckedContentColor Color of content (text or icon) when the toggle button is disabled and checked
disabledUncheckedContainerColor Container or background color when the toggle button is disabled and unchecked
disabledUncheckedContentColor Color of the content (text or icon) when the toggle button is disabled and unchecked