From a230ce76ab7a13e5d3150ac262b6a3208c084f51 Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:51:11 -0300 Subject: [PATCH] Update progress bar style to match 1.12 progress bar --- src/operations.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/operations.rs b/src/operations.rs index abff33cc..99989ebc 100644 --- a/src/operations.rs +++ b/src/operations.rs @@ -105,12 +105,12 @@ pub fn download_extract_sans_parent( None => ProgressBar::new_spinner(), }; - pb.set_prefix(" Downloading:"); + pb.set_prefix(" Downloading"); pb.set_style( ProgressStyle::default_bar() - .template("{prefix:.cyan.bold} [{bar}] {bytes}/{total_bytes} eta: {eta}") + .template("{prefix:.cyan.bold}: {bar:.cyan/white} {bytes}/{total_bytes} eta: {eta}") .unwrap() - .progress_chars("=> "), + .progress_chars("━╸━"), ); let last_modified = match response @@ -204,12 +204,12 @@ pub fn download_extract_sans_parent( ProgressBar::new_spinner() }; - pb.set_prefix(" Downloading:"); + pb.set_prefix(" Downloading"); pb.set_style( ProgressStyle::default_bar() - .template("{prefix:.cyan.bold} [{bar}] {bytes}/{total_bytes} eta: {eta}") + .template("{prefix:.cyan.bold}: {bar:.cyan/white} {bytes}/{total_bytes} eta: {eta}") .unwrap() - .progress_chars("=> "), + .progress_chars("━╸━"), ); let response_with_pb = pb.wrap_read(DataReaderWrap(reader));