non uniform border radius for quads
This commit is contained in:
parent
d222b5c8b0
commit
c0596179bd
25 changed files with 121 additions and 60 deletions
|
|
@ -17,7 +17,7 @@ pub struct Quad {
|
|||
pub border_color: [f32; 4],
|
||||
|
||||
/// The border radius of the [`Quad`].
|
||||
pub border_radius: f32,
|
||||
pub border_radius: [f32; 4],
|
||||
|
||||
/// The border width of the [`Quad`].
|
||||
pub border_width: f32,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ pub enum Primitive {
|
|||
/// The background of the quad
|
||||
background: Background,
|
||||
/// The border radius of the quad
|
||||
border_radius: f32,
|
||||
border_radius: [f32; 4],
|
||||
/// The border width of the quad
|
||||
border_width: f32,
|
||||
/// The border color of the quad
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ where
|
|||
self.primitives.push(Primitive::Quad {
|
||||
bounds: quad.bounds,
|
||||
background: background.into(),
|
||||
border_radius: quad.border_radius,
|
||||
border_radius: quad.border_radius.to_array(),
|
||||
border_width: quad.border_width,
|
||||
border_color: quad.border_color,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue