TextToggleButtonColors

class TextToggleButtonColors


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

Summary

Public constructors

TextToggleButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color
)

Public functions

TextToggleButtonColors
copy(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color
)

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

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

Public properties

Color

Container or background color when the toggle button is checked

Color

Color of the content (text) when the toggle button is checked

Color

Container or background color when the toggle button is disabled and checked

Color

Color of content (text) when the toggle button is disabled and checked

Color

Container or background color when the toggle button is disabled and unchecked

Color

Color of the content (text) when the toggle button is disabled and unchecked

Color

Container or background color when the toggle button is unchecked

Color

Color of the content (text) when the toggle button is unchecked

Public constructors

TextToggleButtonColors

TextToggleButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color
)
Parameters
checkedContainerColor: Color

Container or background color when the toggle button is checked

checkedContentColor: Color

Color of the content (text) when the toggle button is checked

uncheckedContainerColor: Color

Container or background color when the toggle button is unchecked

uncheckedContentColor: Color

Color of the content (text) when the toggle button is unchecked

disabledCheckedContainerColor: Color

Container or background color when the toggle button is disabled and checked

disabledCheckedContentColor: Color

Color of content (text) when the toggle button is disabled and checked

disabledUncheckedContainerColor: Color

Container or background color when the toggle button is disabled and unchecked

disabledUncheckedContentColor: Color

Color of the content (text) when the toggle button is disabled and unchecked

Public functions

copy

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
): TextToggleButtonColors

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

Parameters
checkedContainerColor: Color = this.checkedContainerColor

Container or background color when the toggle button is checked

checkedContentColor: Color = this.checkedContentColor

Color of the content (text or icon) when the toggle button is checked

uncheckedContainerColor: Color = this.uncheckedContainerColor

Container or background color when the toggle button is unchecked

uncheckedContentColor: Color = this.uncheckedContentColor

Color of the content (text or icon) when the toggle button is unchecked

disabledCheckedContainerColor: Color = this.disabledCheckedContainerColor

Container or background color when the toggle button is disabled and checked

disabledCheckedContentColor: Color = this.disabledCheckedContentColor

Color of content (text or icon) when the toggle button is disabled and checked

disabledUncheckedContainerColor: Color = this.disabledUncheckedContainerColor

Container or background color when the toggle button is disabled and unchecked

disabledUncheckedContentColor: Color = this.disabledUncheckedContentColor

Color of the content (text or icon) when the toggle button is disabled and unchecked

equals

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

hashCode

open fun hashCode(): Int

Public properties

checkedContainerColor

Added in 1.0.0-alpha29
val checkedContainerColorColor

Container or background color when the toggle button is checked

checkedContentColor

Added in 1.0.0-alpha29
val checkedContentColorColor

Color of the content (text) when the toggle button is checked

disabledCheckedContainerColor

Added in 1.0.0-alpha29
val disabledCheckedContainerColorColor

Container or background color when the toggle button is disabled and checked

disabledCheckedContentColor

Added in 1.0.0-alpha29
val disabledCheckedContentColorColor

Color of content (text) when the toggle button is disabled and checked

disabledUncheckedContainerColor

Added in 1.0.0-alpha29
val disabledUncheckedContainerColorColor

Container or background color when the toggle button is disabled and unchecked

disabledUncheckedContentColor

Added in 1.0.0-alpha29
val disabledUncheckedContentColorColor

Color of the content (text) when the toggle button is disabled and unchecked

uncheckedContainerColor

Added in 1.0.0-alpha29
val uncheckedContainerColorColor

Container or background color when the toggle button is unchecked

uncheckedContentColor

Added in 1.0.0-alpha29
val uncheckedContentColorColor

Color of the content (text) when the toggle button is unchecked