diff --git a/src/ui/calendar.rs b/src/ui/calendar.rs index 3221bed..7847605 100644 --- a/src/ui/calendar.rs +++ b/src/ui/calendar.rs @@ -126,7 +126,7 @@ impl CalendarMonthView { if self.params.header_bg != Color::TRANSPARENT { renderer.fill_quad(renderer::Quad { bounds, - border_radius: 0.0, + border_radius: 0.0.into(), border_width: 0.0, border_color: Color::TRANSPARENT, }, @@ -274,7 +274,7 @@ impl CalendarMonthView { renderer.fill_quad(renderer::Quad { bounds: Rectangle {width: day_bounds.width + 0.5, height: day_bounds.height + 0.5, ..day_bounds}, - border_radius: 0.0, + border_radius: 0.0.into(), border_width: 1.0, border_color: self.params.day_text_other_month, }, @@ -429,7 +429,7 @@ impl CalendarYearView { if self.params.header_bg != Color::TRANSPARENT { renderer.fill_quad(renderer::Quad { bounds, - border_radius: 0.0, + border_radius: 0.0.into(), border_width: 0.0, border_color: Color::TRANSPARENT, }, @@ -473,7 +473,7 @@ impl CalendarYearView { renderer.fill_quad(renderer::Quad { bounds, - border_radius: 0.0, + border_radius: 0.0.into(), border_width: 1.0, border_color: Color::TRANSPARENT, }, @@ -586,7 +586,7 @@ impl CalendarYearView { renderer.fill_quad(renderer::Quad { bounds: Rectangle {width: day_bounds.width + 0.5, height: day_bounds.height + 0.5, ..day_bounds}, - border_radius: 0.0, + border_radius: 0.0.into(), border_width: 1.0, border_color: self.params.day_text_other_month, },