Use Default implementation of renderer::Quad
This commit is contained in:
parent
b7b457a575
commit
370b2f6df7
20 changed files with 63 additions and 116 deletions
|
|
@ -225,10 +225,7 @@ where
|
|||
width: bounds.width,
|
||||
height: bounds.height,
|
||||
},
|
||||
border_radius: 0.0.into(),
|
||||
border_width: 0.0,
|
||||
border_color: Color::TRANSPARENT,
|
||||
shadow: Default::default(),
|
||||
..renderer::Quad::default()
|
||||
},
|
||||
Background::Color(custom_style.track_color),
|
||||
);
|
||||
|
|
@ -242,10 +239,7 @@ where
|
|||
width: self.easing.y_at_x(*progress) * bounds.width,
|
||||
height: bounds.height,
|
||||
},
|
||||
border_radius: 0.0.into(),
|
||||
border_width: 0.0,
|
||||
border_color: Color::TRANSPARENT,
|
||||
shadow: Default::default(),
|
||||
..renderer::Quad::default()
|
||||
},
|
||||
Background::Color(custom_style.bar_color),
|
||||
),
|
||||
|
|
@ -260,10 +254,7 @@ where
|
|||
* bounds.width,
|
||||
height: bounds.height,
|
||||
},
|
||||
border_radius: 0.0.into(),
|
||||
border_width: 0.0,
|
||||
border_color: Color::TRANSPARENT,
|
||||
shadow: Default::default(),
|
||||
..renderer::Quad::default()
|
||||
},
|
||||
Background::Color(custom_style.bar_color),
|
||||
),
|
||||
|
|
@ -291,7 +282,7 @@ pub struct Appearance {
|
|||
pub bar_color: Color,
|
||||
}
|
||||
|
||||
impl std::default::Default for Appearance {
|
||||
impl Default for Appearance {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
track_color: Color::TRANSPARENT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue