change to some option flags; addition of due dates; changes to display of tasks

This commit is contained in:
aaron-jack-manning
2022-08-24 22:09:52 +10:00
parent 0022f8de53
commit 8bbe32fb6c
5 changed files with 110 additions and 16 deletions

View File

@@ -34,3 +34,26 @@ pub fn id(text : &str) -> colored::ColoredString {
pub fn greyed_out(text : &str) -> colored::ColoredString {
text.truecolor(99, 110, 114)
}
pub mod due_date {
use colored::Colorize;
pub fn overdue(text : &str) -> colored::ColoredString {
text.truecolor(192, 57, 43)
}
pub fn very_close(text : &str) -> colored::ColoredString {
text.truecolor(231, 76, 60)
}
pub fn close(text : &str) -> colored::ColoredString {
text.truecolor(230, 126, 34)
}
pub fn plenty_of_time(text : &str) -> colored::ColoredString {
text.truecolor(46, 204, 113)
}
}