adapt to BorderRadius (4 corner radi instead of single value)

Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
This commit is contained in:
Fabrizio Iannetti 2022-12-03 09:47:57 +01:00
parent 8e8f06cd56
commit 1a2b7936c2
1 changed files with 5 additions and 5 deletions

View File

@ -126,7 +126,7 @@ impl CalendarMonthView {
if self.params.header_bg != Color::TRANSPARENT { if self.params.header_bg != Color::TRANSPARENT {
renderer.fill_quad(renderer::Quad { renderer.fill_quad(renderer::Quad {
bounds, bounds,
border_radius: 0.0, border_radius: 0.0.into(),
border_width: 0.0, border_width: 0.0,
border_color: Color::TRANSPARENT, border_color: Color::TRANSPARENT,
}, },
@ -274,7 +274,7 @@ impl CalendarMonthView {
renderer.fill_quad(renderer::Quad { renderer.fill_quad(renderer::Quad {
bounds: Rectangle {width: day_bounds.width + 0.5, height: day_bounds.height + 0.5, ..day_bounds}, 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_width: 1.0,
border_color: self.params.day_text_other_month, border_color: self.params.day_text_other_month,
}, },
@ -429,7 +429,7 @@ impl CalendarYearView {
if self.params.header_bg != Color::TRANSPARENT { if self.params.header_bg != Color::TRANSPARENT {
renderer.fill_quad(renderer::Quad { renderer.fill_quad(renderer::Quad {
bounds, bounds,
border_radius: 0.0, border_radius: 0.0.into(),
border_width: 0.0, border_width: 0.0,
border_color: Color::TRANSPARENT, border_color: Color::TRANSPARENT,
}, },
@ -473,7 +473,7 @@ impl CalendarYearView {
renderer.fill_quad(renderer::Quad { renderer.fill_quad(renderer::Quad {
bounds, bounds,
border_radius: 0.0, border_radius: 0.0.into(),
border_width: 1.0, border_width: 1.0,
border_color: Color::TRANSPARENT, border_color: Color::TRANSPARENT,
}, },
@ -586,7 +586,7 @@ impl CalendarYearView {
renderer.fill_quad(renderer::Quad { renderer.fill_quad(renderer::Quad {
bounds: Rectangle {width: day_bounds.width + 0.5, height: day_bounds.height + 0.5, ..day_bounds}, 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_width: 1.0,
border_color: self.params.day_text_other_month, border_color: self.params.day_text_other_month,
}, },