class IconButtonColors


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

Summary

Public constructors

IconButtonColors(
    containerColor: Color,
    contentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color
)

Public functions

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

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

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

Public properties

Color

the background color of this icon button when enabled.

Color

the color of this icon when enabled.

Color

the background color of this icon button when not enabled.

Color

the color of this icon when not enabled.

Public constructors

IconButtonColors

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

the background color of this icon button when enabled.

contentColor: Color

the color of this icon when enabled.

disabledContainerColor: Color

the background color of this icon button when not enabled.

disabledContentColor: Color

the color of this icon when not enabled.

Public functions

copy

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

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

Parameters
containerColor: Color = this.containerColor

the background color of this icon button when enabled.

contentColor: Color = this.contentColor

the color of this icon when enabled.

disabledContainerColor: Color = this.disabledContainerColor

the background color of this icon button when not enabled.

disabledContentColor: Color = this.disabledContentColor

the color of this icon when not enabled.

equals

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

hashCode

open fun hashCode(): Int

Public properties

containerColor

Added in 1.0.0-alpha29
val containerColorColor

the background color of this icon button when enabled.

contentColor

Added in 1.0.0-alpha29
val contentColorColor

the color of this icon when enabled.

disabledContainerColor

Added in 1.0.0-alpha29
val disabledContainerColorColor

the background color of this icon button when not enabled.

disabledContentColor

Added in 1.0.0-alpha29
val disabledContentColorColor

the color of this icon when not enabled.