aboutsummaryrefslogtreecommitdiff
path: root/src/views.rs
diff options
context:
space:
mode:
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 {