Skip to content

ProgressBar

@Composable



fun ProgressBar(
    progress: Float, 
    modifier: Modifier = Modifier, 
    direction: ProgressDirection = ProgressDirection.LEFT_TO_RIGHT, 
    fillColor: Int = 0xFF6BA8FF.toInt(), 
    variant: String = ThemeVariants.DEFAULT
)

A themed linear progress indicator: an empty-track sprite from the current theme (looked up as "progress_bar"), filled with a solid color up to progress.

There's no built-in animation or recomposition trigger here - drive progress from an observed block entity field (see net.kernelpanicsoft.archie.gui.blockentity.observeProperty) for a live machine-processing indicator.

Parameters

  • progress: Fraction complete, clamped to 0f..1f.

  • modifier: Additional modifiers applied to the outer container.

  • direction: Which edge the fill grows from.

  • fillColor: ARGB color of the filled portion.

  • variant: The theme variant used for the track texture.