diff options
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/bitview.rs | 4 | ||||
-rw-r--r-- | src/views/countview.rs | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/views/bitview.rs b/src/views/bitview.rs index 16b3ad8..b31b050 100644 --- a/src/views/bitview.rs +++ b/src/views/bitview.rs | |||
@@ -1,7 +1,6 @@ | |||
1 | use cursive::direction::Direction; | 1 | use cursive::direction::Direction; |
2 | use cursive::event::{Event, EventResult, Key}; | 2 | use cursive::event::{Event, EventResult, Key}; |
3 | use cursive::theme::{BaseColor, Color, Effect, Style}; | 3 | use cursive::theme::{BaseColor, Color, Style}; |
4 | use cursive::utils::markup::StyledString; | ||
5 | use cursive::view::View; | 4 | use cursive::view::View; |
6 | use cursive::{Printer, Vec2}; | 5 | use cursive::{Printer, Vec2}; |
7 | 6 | ||
@@ -46,7 +45,6 @@ impl View for BitView { | |||
46 | let true_style = Style::from(Color::Dark(BaseColor::Cyan)); | 45 | let true_style = Style::from(Color::Dark(BaseColor::Cyan)); |
47 | let false_style = Style::from(Color::Dark(BaseColor::Magenta)); | 46 | let false_style = Style::from(Color::Dark(BaseColor::Magenta)); |
48 | let future_style = Style::from(Color::Light(BaseColor::Black)); | 47 | let future_style = Style::from(Color::Light(BaseColor::Black)); |
49 | let today_style = Style::from(Color::Dark(BaseColor::White)); | ||
50 | 48 | ||
51 | for i in 1..=31 { | 49 | for i in 1..=31 { |
52 | let day = NaiveDate::from_ymd_opt(year, month, i); | 50 | let day = NaiveDate::from_ymd_opt(year, month, i); |
diff --git a/src/views/countview.rs b/src/views/countview.rs index 1e8855a..d906acb 100644 --- a/src/views/countview.rs +++ b/src/views/countview.rs | |||
@@ -1,7 +1,6 @@ | |||
1 | use cursive::direction::Direction; | 1 | use cursive::direction::Direction; |
2 | use cursive::event::{Event, EventResult, Key}; | 2 | use cursive::event::{Event, EventResult, Key}; |
3 | use cursive::theme::{BaseColor, Color, Effect, Style}; | 3 | use cursive::theme::{BaseColor, Color, Style}; |
4 | use cursive::utils::markup::StyledString; | ||
5 | use cursive::view::View; | 4 | use cursive::view::View; |
6 | use cursive::{Printer, Vec2}; | 5 | use cursive::{Printer, Vec2}; |
7 | 6 | ||