androidx.compose.material3
SegmentedButtonColors
Class
No hand-written docs yet.
The different colors used in parts of the SegmentedButton in different states
class 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,
)
How to get one
Create it
SegmentedButtonColors(activeContainerColor, activeContentColor, activeBorderColor, inactiveContainerColor, inactiveContentColor, inactiveBorderColor, disabledActiveContainerColor, disabledActiveContentColor, disabledActiveBorderColor, disabledInactiveContainerColor, disabledInactiveContentColor, disabledInactiveBorderColor)constructor
Ready-made values and functions that return it
Used by
Parameters that take a SegmentedButtonColors.
Properties
activeContainerColor
val activeContainerColor: Color
activeContentColor
val activeContentColor: Color
activeBorderColor
val activeBorderColor: Color
inactiveContainerColor
val inactiveContainerColor: Color
inactiveContentColor
val inactiveContentColor: Color
inactiveBorderColor
val inactiveBorderColor: Color
disabledActiveContainerColor
val disabledActiveContainerColor: Color
disabledActiveContentColor
val disabledActiveContentColor: Color
disabledActiveBorderColor
val disabledActiveBorderColor: Color
disabledInactiveContainerColor
val disabledInactiveContainerColor: Color
disabledInactiveContentColor
val disabledInactiveContentColor: Color
disabledInactiveBorderColor
val disabledInactiveBorderColor: Color
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”
Library docs
The different colors used in parts of the SegmentedButton in different states