ProgressIndicatorColors

Class

Android
public class ProgressIndicatorColors(
    public val indicatorBrush: Brush,
    public val trackBrush: Brush,
    public val overflowTrackBrush: Brush,
    public val disabledIndicatorBrush: Brush,
    public val disabledTrackBrush: Brush,
    public val disabledOverflowTrackBrush: Brush,
)

Represents the indicator and track colors used in progress indicator.

Parameters

indicatorBrushBrush used to draw the indicator of progress indicator.
trackBrushBrush used to draw the track of progress indicator.
overflowTrackBrushBrush used to draw the track for progress overflow (>100%).
disabledIndicatorBrushBrush used to draw the indicator if the component is disabled.
disabledTrackBrushBrush used to draw the track if the component is disabled.
disabledOverflowTrackBrushBrush used to draw the overflow track if the component is disabled.

Functions

public fun copy(
        indicatorColor: Color = Color.Unspecified,
        trackColor: Color = Color.Unspecified,
        overflowTrackColor: Color = Color.Unspecified,
        disabledIndicatorColor: Color = Color.Unspecified,
        disabledTrackColor: Color = Color.Unspecified,
        disabledOverflowTrackColor: Color = Color.Unspecified,
    ): ProgressIndicatorColors

Returns a copy of this ProgressIndicatorColors optionally overriding some of the values.

Parameters

indicatorColorThe indicator color.
trackColorThe track color.
overflowTrackColorThe overflow track color.
disabledIndicatorColorThe disabled indicator color.
disabledTrackColorThe disabled track color.
disabledOverflowTrackColorThe disabled overflow track color.
public fun copy(
        indicatorBrush: Brush? = null,
        trackBrush: Brush? = null,
        overflowTrackBrush: Brush? = null,
        disabledIndicatorBrush: Brush? = null,
        disabledTrackBrush: Brush? = null,
        disabledOverflowTrackBrush: Brush? = null,
    ): ProgressIndicatorColors

Returns a copy of this ProgressIndicatorColors optionally overriding some of the values.

Parameters

indicatorBrushBrush used to draw the indicator of progress indicator.
trackBrushBrush used to draw the track of progress indicator.
overflowTrackBrushBrush used to draw the track for progress overflow.
disabledIndicatorBrushBrush used to draw the indicator if the component is disabled.
disabledTrackBrushBrush used to draw the track if the component is disabled.
disabledOverflowTrackBrushBrush used to draw the overflow track if the component is disabled.