ToggleButtonColors

class ToggleButtonColors


Represents the colors used by a ToggleButton in different states.

Summary

Public constructors

ToggleButtonColors(
    backgroundColor: Color,
    focusedBackgroundColor: Color,
    checkedBackgroundColor: Color,
    focusedCheckedBackgroundColor: Color,
    contentColor: Color,
    focusedContentColor: Color,
    checkedContentColor: Color,
    focusedCheckedContentColor: Color
)

Public functions

ToggleButtonColors
copy(
    backgroundColor: Color,
    focusedBackgroundColor: Color,
    checkedBackgroundColor: Color,
    focusedCheckedBackgroundColor: Color,
    contentColor: Color,
    focusedContentColor: Color,
    checkedContentColor: Color,
    focusedCheckedContentColor: Color
)

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

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

Public properties

Color

the background color when the button is unchecked and unfocused

Color

the background color when the button is checked and unfocused

Color

the content color when the button is checked and unfocused

Color

the content color when the button is unchecked and unfocused

Color

the background color when the button is unchecked and focused

Color

the background color when the button is checked and focused

Color

the content color when the button is checked and focused

Color

the content color when the button is unchecked and focused

Public constructors

ToggleButtonColors

Added in 1.0.0-alpha22
ToggleButtonColors(
    backgroundColor: Color,
    focusedBackgroundColor: Color,
    checkedBackgroundColor: Color,
    focusedCheckedBackgroundColor: Color,
    contentColor: Color,
    focusedContentColor: Color,
    checkedContentColor: Color,
    focusedCheckedContentColor: Color
)

Public functions

copy

Added in 1.0.0-alpha22
fun copy(
    backgroundColor: Color = this.backgroundColor,
    focusedBackgroundColor: Color = this.focusedBackgroundColor,
    checkedBackgroundColor: Color = this.checkedBackgroundColor,
    focusedCheckedBackgroundColor: Color = this.focusedCheckedBackgroundColor,
    contentColor: Color = this.contentColor,
    focusedContentColor: Color = this.focusedContentColor,
    checkedContentColor: Color = this.checkedContentColor,
    focusedCheckedContentColor: Color = this.focusedCheckedContentColor
): ToggleButtonColors

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

equals

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

hashCode

open fun hashCode(): Int

Public properties

backgroundColor

val backgroundColor: Color

the background color when the button is unchecked and unfocused

checkedBackgroundColor

val checkedBackgroundColor: Color

the background color when the button is checked and unfocused

checkedContentColor

val checkedContentColor: Color

the content color when the button is checked and unfocused

contentColor

val contentColor: Color

the content color when the button is unchecked and unfocused

focusedBackgroundColor

val focusedBackgroundColor: Color

the background color when the button is unchecked and focused

focusedCheckedBackgroundColor

val focusedCheckedBackgroundColor: Color

the background color when the button is checked and focused

focusedCheckedContentColor

val focusedCheckedContentColor: Color

the content color when the button is checked and focused

focusedContentColor

val focusedContentColor: Color

the content color when the button is unchecked and focused