list profiles

This commit is contained in:
aaron-jack-manning
2022-09-03 12:28:25 +10:00
parent 310aa84f50
commit ae7887fd35
5 changed files with 115 additions and 14 deletions

View File

@@ -23,6 +23,8 @@ pub static TASK : (u8, u8, u8) = (39, 174, 96);
pub static FILE : (u8, u8, u8) = (255, 184, 184);
// Grey
pub static GREY : (u8, u8, u8) = (99, 110, 114);
// Pink
pub static PROFILE : (u8, u8, u8) = (253, 121, 168);
mod due {
pub static OVERDUE : (u8, u8, u8) = (192, 57, 43);
@@ -65,11 +67,14 @@ pub fn file(string : &str) -> colored::ColoredString {
text(string, FILE).bold()
}
pub fn greyed_out(string : &str) -> colored::ColoredString {
text(string, GREY)
}
pub fn profile(string : &str) -> colored::ColoredString {
text(string, PROFILE)
}
pub fn priority(priority : &tasks::Priority) -> String {
use tasks::Priority::*;
let priority = match priority {