Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
73c6ba25b1
commit
be28b4ff80
@ -4,6 +4,7 @@ use ratatui::prelude::*;
|
|||||||
|
|
||||||
const GREEN: Color = Color::Rgb(127, 255, 0);
|
const GREEN: Color = Color::Rgb(127, 255, 0);
|
||||||
const ORANGE: Color = Color::Rgb(255, 165, 0);
|
const ORANGE: Color = Color::Rgb(255, 165, 0);
|
||||||
|
const PURPLE: Color = Color::Rgb(138, 43, 226);
|
||||||
|
|
||||||
pub trait Summarize {
|
pub trait Summarize {
|
||||||
fn heading(&self) -> Vec<Span>;
|
fn heading(&self) -> Vec<Span>;
|
||||||
@ -21,20 +22,20 @@ impl Summarize for MovementGraphItem {
|
|||||||
|
|
||||||
vec![
|
vec![
|
||||||
name,
|
name,
|
||||||
Span::from(" ~ "),
|
Span::from(" ~ ").fg(PURPLE),
|
||||||
Span::from(format!("(items: {})", items)),
|
Span::from(format!("(items: {})", items)).fg(Color::DarkGray),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
GraphItemType::Item { done } => {
|
GraphItemType::Item { done } => {
|
||||||
if done {
|
if done {
|
||||||
vec![
|
vec![
|
||||||
Span::from("["),
|
Span::from("[").fg(Color::DarkGray),
|
||||||
Span::from("x").fg(GREEN),
|
Span::from("x").fg(GREEN),
|
||||||
Span::from("] "),
|
Span::from("] ").fg(Color::DarkGray),
|
||||||
name,
|
name,
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
vec![Span::from("[ ] "), name]
|
vec![Span::from("[ ] ").fg(Color::DarkGray), name]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user