mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 02:23:51 +01:00
feat: change progress message color
This commit is contained in:
parent
627fd6a055
commit
d61f77c60b
1 changed files with 2 additions and 2 deletions
|
@ -16,14 +16,14 @@ use pesde::reporters::{
|
|||
pub const TICK_CHARS: &str = "⣷⣯⣟⡿⢿⣻⣽⣾";
|
||||
|
||||
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()
|
||||
.tick_chars(TICK_CHARS)
|
||||
}
|
||||
|
||||
pub fn root_progress_style_with_progress() -> ProgressStyle {
|
||||
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()
|
||||
.tick_chars(TICK_CHARS)
|
||||
|
|
Loading…
Add table
Reference in a new issue