diff options
author | Akshay <[email protected]> | 2020-07-12 05:01:53 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-07-12 05:01:53 +0100 |
commit | 968c1a48a0febdb78ab85a34f0dafd16a3761d5a (patch) | |
tree | f105eb93bbbfa86d8af913e2922163946a2d2d3e /src/views.rs | |
parent | 28f72d4949da6093ef2232d3ba708ac0fcafe900 (diff) | |
parent | 0b18c65466a59b1c9f8d1bfbe596fc2750571dfb (diff) |
Merge branch 'master' into dependabot/add-v2-config-file
Diffstat (limited to 'src/views.rs')
-rw-r--r-- | src/views.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/views.rs b/src/views.rs index d25e59b..3e623a9 100644 --- a/src/views.rs +++ b/src/views.rs | |||
@@ -8,6 +8,7 @@ use chrono::prelude::*; | |||
8 | use chrono::{Duration, Local, NaiveDate}; | 8 | use chrono::{Duration, Local, NaiveDate}; |
9 | 9 | ||
10 | use crate::habit::{Bit, Count, Habit, TrackEvent}; | 10 | use crate::habit::{Bit, Count, Habit, TrackEvent}; |
11 | |||
11 | use crate::CONFIGURATION; | 12 | use crate::CONFIGURATION; |
12 | 13 | ||
13 | pub trait ShadowView { | 14 | pub trait ShadowView { |
@@ -62,6 +63,15 @@ where | |||
62 | }, | 63 | }, |
63 | ); | 64 | ); |
64 | 65 | ||
66 | // fn draw_day(&self, p: &Printer) { }; | ||
67 | // fn draw_month(&self, p: &Printer) {}; | ||
68 | |||
69 | // match self.view_mode() { | ||
70 | // ViewMode::Day => draw_day(self, p), | ||
71 | // ViewMode::Month => | ||
72 | // } | ||
73 | |||
74 | //let draw_day = |printer: &Printer| { | ||
65 | let mut i = 1; | 75 | let mut i = 1; |
66 | while let Some(d) = NaiveDate::from_ymd_opt(year, month, i) { | 76 | while let Some(d) = NaiveDate::from_ymd_opt(year, month, i) { |
67 | let day_style; | 77 | let day_style; |
@@ -82,6 +92,8 @@ where | |||
82 | } | 92 | } |
83 | i += 1; | 93 | i += 1; |
84 | } | 94 | } |
95 | //}; | ||
96 | //draw_day(printer); | ||
85 | } | 97 | } |
86 | 98 | ||
87 | fn required_size(&mut self, _: Vec2) -> Vec2 { | 99 | fn required_size(&mut self, _: Vec2) -> Vec2 { |