pub fn with_default_scaled_gradient() -> ProgressOptionExpand description
Creates a scaled gradient with default colors.
Similar to with_default_gradient() but scales the gradient to fit only
the filled portion of the progress bar. This creates a more dynamic effect
where the gradient adjusts its range based on the current progress level.
ยงExamples
use bubbletea_widgets::progress::{new, with_default_scaled_gradient};
let progress = new(&[
with_default_scaled_gradient(),
]);
// At 50% progress, the gradient spans only the filled half
// At 100% progress, the gradient spans the entire bar