#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash, Default)]
pub struct DefaultBarTheme;
pub trait BarTheme {
fn reset(&self) -> &str {
"\x1b[0m"
}
fn task(&self) -> &str {
""
}
fn percent(&self) -> &str {
""
}
fn start(&self) -> &str {
"["
}
fn full(&self) -> &str {
"#"
}
fn thumb(&self) -> &str {
""
}
fn empty(&self) -> &str {
" "
}
fn end(&self) -> &str {
"]"
}
fn time(&self) -> &str {
""
}
fn info(&self) -> &str {
""
}
}
impl BarTheme for DefaultBarTheme {
fn task(&self) -> &str {
"\x1b[97m"
}
fn percent(&self) -> &str {
"\x1b[96m"
}
fn start(&self) -> &str {
"[\x1b[93m"
}
fn full(&self) -> &str {
"="
}
fn thumb(&self) -> &str {
"\x1b[97;1m#\x1b[0;90m"
}
fn empty(&self) -> &str {
"-"
}
fn end(&self) -> &str {
"\x1b[0m]"
}
fn time(&self) -> &str {
"\x1b[95m"
}
fn info(&self) -> &str {
""
}
}