From b9b970f2aefa8f23885226885112b7725746378a Mon Sep 17 00:00:00 2001 From: Abraham Toriz Date: Wed, 25 Aug 2021 16:50:07 -0500 Subject: [PATCH] bold non zero data in t list --- src/commands/list.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/list.rs b/src/commands/list.rs index 11f13ce..dcbd681 100644 --- a/src/commands/list.rs +++ b/src/commands/list.rs @@ -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),