SegmentedButtonColors


The different colors used in parts of the SegmentedButton in different states

Summary

Public constructors

SegmentedButtonColors(
    activeContainerColor: Color,
    activeContentColor: Color,
    activeBorderColor: Color,
    inactiveContainerColor: Color,
    inactiveContentColor: Color,
    inactiveBorderColor: Color,
    disabledActiveContainerColor: Color,
    disabledActiveContentColor: Color,
    disabledActiveBorderColor: Color,
    disabledInactiveContainerColor: Color,
    disabledInactiveContentColor: Color,
    disabledInactiveBorderColor: Color
)

create an instance with arbitrary colors, see SegmentedButtonDefaults for a factory method using the default material3 spec

Cmn

Public functions

SegmentedButtonColors
copy(
    activeContainerColor: Color,
    activeContentColor: Color,
    activeBorderColor: Color,
    inactiveContainerColor: Color,
    inactiveContentColor: Color,
    inactiveBorderColor: Color,
    disabledActiveContainerColor: Color,
    disabledActiveContentColor: Color,
    disabledActiveBorderColor: Color,
    disabledInactiveContainerColor: Color,
    disabledInactiveContentColor: Color,
    disabledInactiveBorderColor: Color
)

Returns a copy of this ChipColors, optionally overriding some of the ues.

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

Public properties

Color

the color used for the border when enabled and active

Cmn
Color

the color used for the container when enabled and active

Cmn
Color

the color used for the content when enabled and active

Cmn
Color

the color used for the border when disabled and active

Cmn
Color

the color used for the container when disabled and active

Cmn
Color

the color used for the content when disabled and active

Cmn
Color

the color used for the border when disabled and inactive

Cmn
Color

the color used for the container when disabled and inactive

Cmn
Color

the color used for the content when disabled and inactive

Cmn
Color

the color used for the border when enabled and active

Cmn
Color

the color used for the container when enabled and inactive

Cmn
Color

the color used for the content when enabled and inactive

Cmn

Public constructors

SegmentedButtonColors

SegmentedButtonColors(
    activeContainerColor: Color,
    activeContentColor: Color,
    activeBorderColor: Color,
    inactiveContainerColor: Color,
    inactiveContentColor: Color,
    inactiveBorderColor: Color,
    disabledActiveContainerColor: Color,
    disabledActiveContentColor: Color,
    disabledActiveBorderColor: Color,
    disabledInactiveContainerColor: Color,
    disabledInactiveContentColor: Color,
    disabledInactiveBorderColor: Color
)

create an instance with arbitrary colors, see SegmentedButtonDefaults for a factory method using the default material3 spec

Parameters
activeContainerColor: Color

the color used for the container when enabled and active

activeContentColor: Color

the color used for the content when enabled and active

activeBorderColor: Color

the color used for the border when enabled and active

inactiveContainerColor: Color

the color used for the container when enabled and inactive

inactiveContentColor: Color

the color used for the content when enabled and inactive

inactiveBorderColor: Color

the color used for the border when enabled and active

disabledActiveContainerColor: Color

the color used for the container when disabled and active

disabledActiveContentColor: Color

the color used for the content when disabled and active

disabledActiveBorderColor: Color

the color used for the border when disabled and active

disabledInactiveContainerColor: Color

the color used for the container when disabled and inactive

disabledInactiveContentColor: Color

the color used for the content when disabled and inactive

disabledInactiveBorderColor: Color

the color used for the border when disabled and inactive

Public functions

copy

fun copy(
    activeContainerColor: Color = this.activeContainerColor,
    activeContentColor: Color = this.activeContentColor,
    activeBorderColor: Color = this.activeBorderColor,
    inactiveContainerColor: Color = this.inactiveContainerColor,
    inactiveContentColor: Color = this.inactiveContentColor,
    inactiveBorderColor: Color = this.inactiveBorderColor,
    disabledActiveContainerColor: Color = this.disabledActiveContainerColor,
    disabledActiveContentColor: Color = this.disabledActiveContentColor,
    disabledActiveBorderColor: Color = this.disabledActiveBorderColor,
    disabledInactiveContainerColor: Color = this.disabledInactiveContainerColor,
    disabledInactiveContentColor: Color = this.disabledInactiveContentColor,
    disabledInactiveBorderColor: Color = this.disabledInactiveBorderColor
): SegmentedButtonColors

Returns a copy of this ChipColors, optionally overriding some of the ues. This uses the Color.Unspecified to mean “use the value from the source”

equals

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

hashCode

open fun hashCode(): Int

Public properties

activeBorderColor

val activeBorderColor: Color

the color used for the border when enabled and active

activeContainerColor

val activeContainerColor: Color

the color used for the container when enabled and active

activeContentColor

val activeContentColor: Color

the color used for the content when enabled and active

disabledActiveBorderColor

val disabledActiveBorderColor: Color

the color used for the border when disabled and active

disabledActiveContainerColor

val disabledActiveContainerColor: Color

the color used for the container when disabled and active

disabledActiveContentColor

val disabledActiveContentColor: Color

the color used for the content when disabled and active

disabledInactiveBorderColor

val disabledInactiveBorderColor: Color

the color used for the border when disabled and inactive

disabledInactiveContainerColor

val disabledInactiveContainerColor: Color

the color used for the container when disabled and inactive

disabledInactiveContentColor

val disabledInactiveContentColor: Color

the color used for the content when disabled and inactive

inactiveBorderColor

val inactiveBorderColor: Color

the color used for the border when enabled and active

inactiveContainerColor

val inactiveContainerColor: Color

the color used for the container when enabled and inactive

inactiveContentColor

val inactiveContentColor: Color

the color used for the content when enabled and inactive