Skip to main content

glass_progress

Function glass_progress 

Source
pub fn glass_progress() -> GlassProgressBuilder
Expand description

§glass_progress

Renders a progress bar with a customizable glass effect.

§Usage

Display a value in a continuous range (0.0 to 1.0) with a modern, glass-like appearance.

§Parameters

  • value — progress value in the range 0.0..=1.0.
  • modifier — optional modifier chain for width and layout.
  • height — optional progress bar height.
  • track_tint_color — optional glass tint color for the track background.
  • progress_tint_color — optional glass tint color for the progress fill.
  • blur_radius — optional blur radius for the glass effect.
  • track_border_width — optional border width for the track.

§Examples

use tessera_components::glass_progress::glass_progress;

// Render a progress bar at 75% completion.
glass_progress().value(0.75);