diff options
author | Akshay <nerdy@peppe.rs> | 2020-07-10 22:36:08 +0530 |
---|---|---|
committer | Akshay <nerdy@peppe.rs> | 2020-07-10 22:36:08 +0530 |
commit | 27a925262bfd4a70f251226c17b43749b9fd81bb (patch) | |
tree | 2beeaba9ae879664a2437f6d92a27edfe53db0fe | |
parent | b6ea375485083860094a904b7a6c7d97fa42b8f8 (diff) |
add directories crate, simplify done status
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | src/views.rs | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -11,6 +11,7 @@ serde_json = "1.0" lazy_static = "1.4.0" erased-serde = "0.3" typetag = "0.1.4" +directories = "3.0.1" [dependencies.cursive] version = "0.14" diff --git a/src/views.rs b/src/views.rs index 64c85ce..d25e59b 100644 --- a/src/views.rs +++ b/src/views.rs @@ -39,7 +39,7 @@ where let todo_style = Style::from(CONFIGURATION.todo_color); let future_style = Style::from(CONFIGURATION.future_color); - let done_today_style = Style::from(Effect::Strikethrough); + let strikethrough = Style::from(Effect::Strikethrough); let goal_status = self.view_month_offset() == 0 && self.reached_goal(Local::now().naive_utc().date()); @@ -47,7 +47,7 @@ where printer.with_style( Style::merge(&[ if goal_status { - done_today_style + strikethrough } else { Style::none() }, |