RemoteProgressIndicatorDefaults

object RemoteProgressIndicatorDefaults


Contains defaults for Remote Progress Indicators.

Summary

Public functions

RemoteDp

Returns recommended size of the gap based on strokeWidth.

RemoteProgressIndicatorColors

Creates a RemoteProgressIndicatorColors with the default colors.

RemoteProgressIndicatorColors
@Composable
@RemoteComposable
colors(
    indicatorBrush: RemoteBrush?,
    trackBrush: RemoteBrush?,
    overflowTrackBrush: RemoteBrush?,
    disabledIndicatorBrush: RemoteBrush?,
    disabledTrackBrush: RemoteBrush?,
    disabledOverflowTrackBrush: RemoteBrush?
)

Creates a RemoteProgressIndicatorColors with modified brushes.

RemoteProgressIndicatorColors
@Composable
@RemoteComposable
colors(
    indicatorColor: RemoteColor?,
    trackColor: RemoteColor?,
    overflowTrackColor: RemoteColor?,
    disabledIndicatorColor: RemoteColor?,
    disabledTrackColor: RemoteColor?,
    disabledOverflowTrackColor: RemoteColor?
)

Creates a RemoteProgressIndicatorColors with modified colors.

Public functions

calculateRecommendedGapSize

Added in 1.0.0-alpha02
fun calculateRecommendedGapSize(strokeWidth: RemoteDp): RemoteDp

Returns recommended size of the gap based on strokeWidth.

colors

Added in 1.0.0-alpha02
@Composable
@RemoteComposable
fun colors(
    indicatorBrush: RemoteBrush? = null,
    trackBrush: RemoteBrush? = null,
    overflowTrackBrush: RemoteBrush? = null,
    disabledIndicatorBrush: RemoteBrush? = null,
    disabledTrackBrush: RemoteBrush? = null,
    disabledOverflowTrackBrush: RemoteBrush? = null
): RemoteProgressIndicatorColors

Creates a RemoteProgressIndicatorColors with modified brushes.

colors

Added in 1.0.0-alpha02
@Composable
@RemoteComposable
fun colors(
    indicatorColor: RemoteColor? = null,
    trackColor: RemoteColor? = null,
    overflowTrackColor: RemoteColor? = null,
    disabledIndicatorColor: RemoteColor? = null,
    disabledTrackColor: RemoteColor? = null,
    disabledOverflowTrackColor: RemoteColor? = null
): RemoteProgressIndicatorColors

Creates a RemoteProgressIndicatorColors with modified colors.