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

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 or icon) when the toggle button is checked

Color

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

Color

Color of content (text or icon) 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 or icon) 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 or icon) 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 or icon) 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 or icon) 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 or icon) 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 or icon) when the toggle button is disabled and unchecked

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

checkedContainerColor

Added in 1.0.0-alpha25
val checkedContainerColorColor

Container or background color when the toggle button is checked

checkedContentColor

Added in 1.0.0-alpha25
val checkedContentColorColor

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

disabledCheckedContainerColor

Added in 1.0.0-alpha25
val disabledCheckedContainerColorColor

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

disabledCheckedContentColor

Added in 1.0.0-alpha25
val disabledCheckedContentColorColor

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

disabledUncheckedContainerColor

Added in 1.0.0-alpha25
val disabledUncheckedContainerColorColor

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

disabledUncheckedContentColor

Added in 1.0.0-alpha25
val disabledUncheckedContentColorColor

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

uncheckedContainerColor

Added in 1.0.0-alpha25
val uncheckedContainerColorColor

Container or background color when the toggle button is unchecked

uncheckedContentColor

Added in 1.0.0-alpha25
val uncheckedContentColorColor

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