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

CardColors

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

Source set: Common
public class CardColors public constructor(
    public val containerColor: Color,
    public val contentColor: Color,
    public val disabledContainerColor: Color,
    public val disabledContentColor: Color,
)

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

Parameters

containerColor the container color of this Card when enabled.
contentColor the content color of this Card when enabled.
disabledContainerColor the container color of this Card when not enabled.
disabledContentColor the content color of this Card when not enabled.

Functions

copy

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

Returns a copy of this CardColors, optionally overriding some of the values. 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: