androidx.compose.material3

IconToggleButtonColors

Class

No hand-written docs yet.

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

class IconToggleButtonColors(
    containerColor: Color,
    contentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color,
    checkedContainerColor: Color,
    checkedContentColor: Color,
)

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a IconToggleButtonColors.

Properties

containerColor

val containerColor: Color

contentColor

val contentColor: Color

disabledContainerColor

val disabledContainerColor: Color

disabledContentColor

val disabledContentColor: Color

checkedContainerColor

val checkedContainerColor: Color

checkedContentColor

val checkedContentColor: Color

Functions

copy

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,
): IconToggleButtonColors

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

Library docs

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