ToggleButtonColors


class ToggleButtonColors


Represents the different container and content colors used for toggle buttons (ToggleButton, IconToggleButton, and TextToggleButton) in various states, that are checked, unchecked, enabled and disabled.

Summary

Public constructors

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

ToggleButtonColors constructor for IconToggleButton and TextToggleButton.

ToggleButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedIconColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    uncheckedSecondaryContentColor: Color,
    uncheckedIconColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledCheckedSecondaryContentColor: Color,
    disabledCheckedIconColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color,
    disabledUncheckedSecondaryContentColor: Color,
    disabledUncheckedIconColor: Color
)

ToggleButtonColors constructor to be used with ToggleButton

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 like label when the toggle button is checked

Color

Color of the icon when the toggle button is checked

Color

Color of the secondary content like secondary label when the toggle button is checked

Color

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

Color

Color of content like label when the toggle button is disabled and checked

Color

Icon color when the toggle button is disabled and checked

Color

Color of the secondary content like secondary label 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 like label when the toggle button is disabled and unchecked

Color

Icon color when the toggle button is disabled and unchecked

Color

Color of the secondary content like secondary label when the toggle button is disabled and unchecked

Color

Container or background color when the toggle button is unchecked

Color

Color of the content like label when the toggle button is unchecked

Color

Color of the icon when the toggle button is unchecked

Color

Color of the secondary content like secondary label when the toggle button is unchecked

Public constructors

ToggleButtonColors

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

ToggleButtonColors constructor for IconToggleButton and TextToggleButton.

Parameters
checkedContainerColor: Color

Container or background color of the toggle button when checked

checkedContentColor: Color

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

uncheckedContainerColor: Color

Container or background color of the toggle button when unchecked

uncheckedContentColor: Color

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

disabledCheckedContainerColor: Color

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

disabledCheckedContentColor: Color

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

disabledUncheckedContainerColor: Color

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

disabledUncheckedContentColor: Color

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

ToggleButtonColors

ToggleButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedIconColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    uncheckedSecondaryContentColor: Color,
    uncheckedIconColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledCheckedSecondaryContentColor: Color,
    disabledCheckedIconColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color,
    disabledUncheckedSecondaryContentColor: Color,
    disabledUncheckedIconColor: Color
)

ToggleButtonColors constructor to be used with ToggleButton

Parameters
checkedContainerColor: Color

Container or background color when the toggle button is checked

checkedContentColor: Color

Color of the content like label when the toggle button is checked

checkedSecondaryContentColor: Color

Color of the secondary content like secondary label when the toggle button is checked

checkedIconColor: Color

Color of the 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 like label when the toggle button is unchecked

uncheckedSecondaryContentColor: Color

Color of the secondary content like secondary label when the toggle button is unchecked

uncheckedIconColor: Color

Color of the 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 like label when the toggle button is disabled and checked

disabledCheckedSecondaryContentColor: Color

Color of the secondary content like secondary label when the toggle button is disabled and checked

disabledCheckedIconColor: Color

Icon color 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 like label when the toggle button is disabled and unchecked

disabledUncheckedSecondaryContentColor: Color

Color of the secondary content like secondary label when the toggle button is disabled and unchecked

disabledUncheckedIconColor: Color

Icon color 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-alpha21
val checkedContainerColorColor

Container or background color when the toggle button is checked

checkedContentColor

Added in 1.0.0-alpha21
val checkedContentColorColor

Color of the content like label when the toggle button is checked

checkedIconColor

Added in 1.0.0-alpha21
val checkedIconColorColor

Color of the icon when the toggle button is checked

checkedSecondaryContentColor

Added in 1.0.0-alpha21
val checkedSecondaryContentColorColor

Color of the secondary content like secondary label when the toggle button is checked

disabledCheckedContainerColor

Added in 1.0.0-alpha21
val disabledCheckedContainerColorColor

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

disabledCheckedContentColor

Added in 1.0.0-alpha21
val disabledCheckedContentColorColor

Color of content like label when the toggle button is disabled and checked

disabledCheckedIconColor

Added in 1.0.0-alpha21
val disabledCheckedIconColorColor

Icon color when the toggle button is disabled and checked

disabledCheckedSecondaryContentColor

Added in 1.0.0-alpha21
val disabledCheckedSecondaryContentColorColor

Color of the secondary content like secondary label when the toggle button is disabled and checked

disabledUncheckedContainerColor

Added in 1.0.0-alpha21
val disabledUncheckedContainerColorColor

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

disabledUncheckedContentColor

Added in 1.0.0-alpha21
val disabledUncheckedContentColorColor

Color of the content like label when the toggle button is disabled and unchecked

disabledUncheckedIconColor

Added in 1.0.0-alpha21
val disabledUncheckedIconColorColor

Icon color when the toggle button is disabled and unchecked

disabledUncheckedSecondaryContentColor

Added in 1.0.0-alpha21
val disabledUncheckedSecondaryContentColorColor

Color of the secondary content like secondary label when the toggle button is disabled and unchecked

uncheckedContainerColor

Added in 1.0.0-alpha21
val uncheckedContainerColorColor

Container or background color when the toggle button is unchecked

uncheckedContentColor

Added in 1.0.0-alpha21
val uncheckedContentColorColor

Color of the content like label when the toggle button is unchecked

uncheckedIconColor

Added in 1.0.0-alpha21
val uncheckedIconColorColor

Color of the icon when the toggle button is unchecked

uncheckedSecondaryContentColor

Added in 1.0.0-alpha21
val uncheckedSecondaryContentColorColor

Color of the secondary content like secondary label when the toggle button is unchecked