feat: change progress message color

This commit is contained in:
LukaDev 2024-12-27 16:46:35 +01:00
parent 627fd6a055
commit d61f77c60b

View file

@ -16,14 +16,14 @@ use pesde::reporters::{
pub const TICK_CHARS: &str = "⣷⣯⣟⡿⢿⣻⣽⣾"; pub const TICK_CHARS: &str = "⣷⣯⣟⡿⢿⣻⣽⣾";
pub fn root_progress_style() -> ProgressStyle { pub fn root_progress_style() -> ProgressStyle {
ProgressStyle::with_template("{prefix:.dim}{msg:>8.green} {spinner} [{elapsed_precise}]") ProgressStyle::with_template("{prefix:.dim}{msg:>8.214/yellow} {spinner} [{elapsed_precise}]")
.unwrap() .unwrap()
.tick_chars(TICK_CHARS) .tick_chars(TICK_CHARS)
} }
pub fn root_progress_style_with_progress() -> ProgressStyle { pub fn root_progress_style_with_progress() -> ProgressStyle {
ProgressStyle::with_template( ProgressStyle::with_template(
"{prefix:.dim}{msg:>8.green} {spinner} [{elapsed_precise}] {bar:20} {pos}/{len}", "{prefix:.dim}{msg:>8.214/yellow} {spinner} [{elapsed_precise}] {bar:20} {pos}/{len}",
) )
.unwrap() .unwrap()
.tick_chars(TICK_CHARS) .tick_chars(TICK_CHARS)