bold non zero data in t list

This commit is contained in:
Abraham Toriz 2021-08-25 16:50:07 -05:00
parent 3598f7844c
commit b9b970f2ae
1 changed files with 6 additions and 2 deletions

View File

@ -114,10 +114,14 @@ impl<'a> Command<'a> for ListCommand {
Col::min_width(9).and_alignment(Left),
// running time
Col::min_width(9).and_alignment(Right).color_if(Style::new().dimmed(), |s| s == "0:00:00"),
Col::min_width(9).and_alignment(Right)
.color_if(Style::new().dimmed(), |s| s == "0:00:00")
.color_if(Style::new().bold(), |s| s != "0:00:00"),
// today
Col::min_width(9).and_alignment(Right).color_if(Style::new().dimmed(), |s| s == "0:00:00"),
Col::min_width(9).and_alignment(Right)
.color_if(Style::new().dimmed(), |s| s == "0:00:00")
.color_if(Style::new().bold(), |s| s != "0:00:00"),
// accumulated
Col::min_width(12).and_alignment(Right),