IconToggleButtonColors

class IconToggleButtonColors


Represents the colors used by an IconToggleButton in different states.

Summary

Public constructors

IconToggleButtonColors(
    backgroundColor: Color,
    checkedBackgroundColor: Color,
    contentColor: Color,
    checkedContentColor: Color
)

Public functions

IconToggleButtonColors
copy(
    backgroundColor: Color,
    checkedBackgroundColor: Color,
    contentColor: Color,
    checkedContentColor: Color
)
open operator Boolean
equals(other: Any?)
open Int

Public properties

Color

the background color when the button is unchecked

Color

the background color when the button is checked

Color

the content color when the button is checked

Color

the content color when the button is unchecked

Public constructors

IconToggleButtonColors

Added in 1.0.0-alpha12
IconToggleButtonColors(
    backgroundColor: Color,
    checkedBackgroundColor: Color,
    contentColor: Color,
    checkedContentColor: Color
)

Public functions

copy

Added in 1.0.0-alpha12
fun copy(
    backgroundColor: Color = this.backgroundColor,
    checkedBackgroundColor: Color = this.checkedBackgroundColor,
    contentColor: Color = this.contentColor,
    checkedContentColor: Color = this.checkedContentColor
): IconToggleButtonColors

equals

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

hashCode

open fun hashCode(): Int

Public properties

backgroundColor

val backgroundColorColor

the background color when the button is unchecked

checkedBackgroundColor

val checkedBackgroundColorColor

the background color when the button is checked

checkedContentColor

val checkedContentColorColor

the content color when the button is checked

contentColor

val contentColorColor

the content color when the button is unchecked