diff --git a/src/tools/blur.rs b/src/tools/blur.rs index abe709b..01256fd 100644 --- a/src/tools/blur.rs +++ b/src/tools/blur.rs @@ -79,7 +79,13 @@ impl Drawable for Blur { // make rect let mut path = Path::new(); - path.rounded_rect(self.top_left.x, self.top_left.y, size.x, size.y, Size::Medium.to_corner_radius()); + path.rounded_rect( + self.top_left.x, + self.top_left.y, + size.x, + size.y, + Size::Medium.to_corner_radius(), + ); // draw canvas.stroke_path(&path, &paint); @@ -97,7 +103,13 @@ impl Drawable for Blur { } let mut path = Path::new(); - path.rounded_rect(pos.x, pos.y, size.x, size.y, Size::Medium.to_corner_radius()); + path.rounded_rect( + pos.x, + pos.y, + size.x, + size.y, + Size::Medium.to_corner_radius(), + ); canvas.fill_path( &path, diff --git a/src/tools/highlight.rs b/src/tools/highlight.rs index 59686c0..eb35604 100644 --- a/src/tools/highlight.rs +++ b/src/tools/highlight.rs @@ -99,7 +99,13 @@ impl Highlight for Highlighter { let (pos, size) = math::rect_ensure_positive_size(self.data.top_left, size); let mut shadow_path = Path::new(); - shadow_path.rounded_rect(pos.x, pos.y, size.x, size.y, Size::Medium.to_corner_radius()); + shadow_path.rounded_rect( + pos.x, + pos.y, + size.x, + size.y, + Size::Medium.to_corner_radius(), + ); let shadow_paint = Paint::color(femtovg::Color::rgba( self.style.color.r, diff --git a/src/tools/rectangle.rs b/src/tools/rectangle.rs index 49da2af..8662d03 100644 --- a/src/tools/rectangle.rs +++ b/src/tools/rectangle.rs @@ -30,7 +30,13 @@ impl Drawable for Rectangle { canvas.save(); let mut path = Path::new(); - path.rounded_rect(self.top_left.x, self.top_left.y, size.x, size.y, Size::Medium.to_corner_radius()); + path.rounded_rect( + self.top_left.x, + self.top_left.y, + size.x, + size.y, + Size::Medium.to_corner_radius(), + ); if self.style.fill { canvas.fill_path(&path, &self.style.into());