ButtonColors


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

Summary

Public constructors

ButtonColors(
    containerColor: Color,
    contentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color
)
Cmn

Public functions

ButtonColors
copy(
    containerColor: Color,
    contentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color
)

Returns a copy of this ButtonColors, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Color

the container color of this Button when enabled.

Cmn
Color

the content color of this Button when enabled.

Cmn
Color

the container color of this Button when not enabled.

Cmn
Color

the content color of this Button when not enabled.

Cmn

Public constructors

ButtonColors

ButtonColors(
    containerColor: Color,
    contentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color
)
Parameters
containerColor: Color

the container color of this Button when enabled.

contentColor: Color

the content color of this Button when enabled.

disabledContainerColor: Color

the container color of this Button when not enabled.

disabledContentColor: Color

the content color of this Button when not enabled. @constructor create an instance with arbitrary colors.

Public functions

copy

fun copy(
    containerColor: Color = this.containerColor,
    contentColor: Color = this.contentColor,
    disabledContainerColor: Color = this.disabledContainerColor,
    disabledContentColor: Color = this.disabledContentColor
): ButtonColors

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

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

containerColor

val containerColorColor

the container color of this Button when enabled.

contentColor

val contentColorColor

the content color of this Button when enabled.

disabledContainerColor

val disabledContainerColorColor

the container color of this Button when not enabled.

disabledContentColor

val disabledContentColorColor

the content color of this Button when not enabled. @constructor create an instance with arbitrary colors.