aboutsummaryrefslogtreecommitdiff
path: root/src/views.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-12 05:01:53 +0100
committerAkshay <[email protected]>2020-07-12 05:01:53 +0100
commit968c1a48a0febdb78ab85a34f0dafd16a3761d5a (patch)
treef105eb93bbbfa86d8af913e2922163946a2d2d3e /src/views.rs
parent28f72d4949da6093ef2232d3ba708ac0fcafe900 (diff)
parent0b18c65466a59b1c9f8d1bfbe596fc2750571dfb (diff)
Merge branch 'master' into dependabot/add-v2-config-file
Diffstat (limited to 'src/views.rs')
-rw-r--r--src/views.rs12
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::*;
8use chrono::{Duration, Local, NaiveDate}; 8use chrono::{Duration, Local, NaiveDate};
9 9
10use crate::habit::{Bit, Count, Habit, TrackEvent}; 10use crate::habit::{Bit, Count, Habit, TrackEvent};
11
11use crate::CONFIGURATION; 12use crate::CONFIGURATION;
12 13
13pub trait ShadowView { 14pub 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 {