diff --git a/hui/src/draw/corner_radius.rs b/hui/src/draw/corner_radius.rs index c28c314..32ac329 100644 --- a/hui/src/draw/corner_radius.rs +++ b/hui/src/draw/corner_radius.rs @@ -17,6 +17,12 @@ pub struct RoundedCorners { pub point_count: NonZeroU16, } +impl From> for RoundedCorners { + fn from(radius: Corners) -> Self { + Self::from_radius(radius) + } +} + impl RoundedCorners { pub fn from_radius(radius: Corners) -> Self { Self {