mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Fix task color for due.today, overdue and due
This commit is contained in:
parent
7208d7879d
commit
820fccb302
2 changed files with 5 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue