From c7aaa8b7efe3960dc477c39dcd74c8c7111df056 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Thu, 30 Oct 2025 15:16:28 +0100 Subject: [PATCH] Improve readability of progress bars (#16509) ## Summary Improve readability of progress bars by drawing the right portions in dimmed black instead of dimmed green. This makes it much easier to distinguish from the left (finished) part, which is drawn in green. Fixes #6908. ## Test Plan Tested locally, looks as follows: white black --- crates/uv/src/commands/reporters.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv/src/commands/reporters.rs b/crates/uv/src/commands/reporters.rs index 1a1c170bf..f9de7c39f 100644 --- a/crates/uv/src/commands/reporters.rs +++ b/crates/uv/src/commands/reporters.rs @@ -230,7 +230,7 @@ impl ProgressReporter { // Ignore spinners, such as for builds. if let ProgressBarKind::Numeric { progress, .. } = progress { let template = format!( - "{{msg:{max_len}.dim}} {{bar:30.green/dim}} {{binary_bytes:>7}}/{{binary_total_bytes:7}}" + "{{msg:{max_len}.dim}} {{bar:30.green/black.dim}} {{binary_bytes:>7}}/{{binary_total_bytes:7}}" ); progress.set_style( ProgressStyle::with_template(&template) @@ -252,7 +252,7 @@ impl ProgressReporter { progress.set_style( ProgressStyle::with_template( &format!( - "{{msg:{}.dim}} {{bar:30.green/dim}} {{binary_bytes:>7}}/{{binary_total_bytes:7}}", state.max_len + "{{msg:{}.dim}} {{bar:30.green/black.dim}} {{binary_bytes:>7}}/{{binary_total_bytes:7}}", state.max_len ), ) .unwrap()