Fix task color for due.today, overdue and due

This commit is contained in:
Dheepak Krishnamurthy 2020-10-21 01:58:35 -06:00
parent 7208d7879d
commit 820fccb302
2 changed files with 5 additions and 1 deletions

View file

@ -1295,7 +1295,10 @@ impl TTApp {
if status != &TaskStatus::Completed && status != &TaskStatus::Deleted {
let today = Local::now().naive_utc().date();
match get_date_state(d) {
DateState::EarlierToday | DateState::LaterToday => add_tag(&mut task, "TODAY".to_string()),
DateState::EarlierToday | DateState::LaterToday => {
add_tag(&mut task, "TODAY".to_string());
add_tag(&mut task, "DUETODAY".to_string());
}
_ => (),
}
}

View file

@ -313,6 +313,7 @@ mod tests {
fn test_colors() {
let tc = TConfig::default();
dbg!(&tc.color["color.active"]);
dbg!(&tc.color["color.due.today"]);
dbg!(&tc.rule_precedence_color);
}
}