ProgressIndicatorDefaults

Properties

Link copied to clipboard

The default size of CircularProgressIndicator (COUI coui_circular_progress_medium_length).

The default stroke width of CircularProgressIndicator (COUI coui_circular_progress_medium_stroke_width).

Link copied to clipboard

The default size of InfiniteProgressIndicator (COUI coui_loading_view_default_length).

The default stroke width of InfiniteProgressIndicator (COUI coui_circle_loading_medium_strokewidth).

Link copied to clipboard

The default height of LinearProgressIndicator (COUI coui_loading_dialog_progress_height).

The default ring diameter of RotatingProgressIndicator. coui_rotating_loading.json: a 26-unit ellipse at 300% group scale is 78 units across on an 84-unit comp, so 78 / 84 * 26.dp = 24.14.dp.

Link copied to clipboard

The default size of RotatingProgressIndicator (COUI coui_lottie_loading_view_large_width/height, the tier COUILottieLoadingView defaults to).

The default stroke width of RotatingProgressIndicator. coui_rotating_loading.json: a 2-unit stroke at 300% group scale is 6 units on an 84-unit comp, so 6 / 84 * 26.dp = 1.857.dp.

Link copied to clipboard

The size of the large CircularProgressIndicator tier (COUI coui_circular_progress_large_length).

The stroke width of the large CircularProgressIndicator tier (COUI coui_circular_progress_large_stroke_width).

Link copied to clipboard

The size of the large InfiniteProgressIndicator tier (COUI coui_loading_view_large_width/height).

The stroke width of the large InfiniteProgressIndicator tier (COUI coui_circle_loading_large_strokewidth).

Link copied to clipboard

The largest supported size of RotatingProgressIndicator (COUI coui_loading_max_large_width/height; COUICompProgressIndicator warns above it).

The ring diameter of the small RotatingProgressIndicator tier. coui_lottie_loading_small.json: a 14-unit ellipse at 300% group scale is 42 units across on a 53-unit comp, so 42 / 53 * 16.dp = 12.68.dp.

Link copied to clipboard

The size of the small RotatingProgressIndicator tier (COUI coui_lottie_loading_view_small_width/height).

The stroke width of the small RotatingProgressIndicator tier. coui_lottie_loading_small.json: a 2-unit stroke at 300% group scale is 6 units on a 53-unit comp, so 6 / 53 * 16.dp = 1.811.dp.

Functions

Link copied to clipboard
fun circularProgressIndicatorColors(foregroundColor: Color = COUITheme.colorScheme.onSurfaceContainerHigh, disabledForegroundColor: Color = COUITheme.colorScheme.disabledPrimarySlider, backgroundColor: Color = COUITheme.colorScheme.dividerLine): ProgressIndicatorColors

The default ProgressIndicatorColors used by CircularProgressIndicator (Widget.COUI.COUICircularProgressBar style: progress = couiColorHintNeutral, track = couiColorDivider).

Link copied to clipboard
fun progressIndicatorColors(foregroundColor: Color = COUITheme.colorScheme.primary, disabledForegroundColor: Color = COUITheme.colorScheme.disabledPrimarySlider, backgroundColor: Color = COUITheme.colorScheme.dividerLine): ProgressIndicatorColors

The default ProgressIndicatorColors used by LinearProgressIndicator (COUIProgressHorizontal style: progress = couiColorPrimary, track = couiColorDivider).