with_default_gradient

Function with_default_gradient 

Source
pub fn with_default_gradient() -> ProgressOption
Expand description

Creates a gradient fill with default colors.

Uses the predefined gradient colors (#5A56E0 to #EE6FF8) that provide an attractive purple-to-pink transition. This is a convenient option for getting a professional-looking gradient without specifying colors.

ยงExamples

use bubbletea_widgets::progress::{new, with_default_gradient, with_width};

let progress = new(&[
    with_default_gradient(),
    with_width(50),
]);