Use f32 for border_width and border_radius
This commit is contained in:
parent
ea1a7248d2
commit
f41eacc3dc
32 changed files with 134 additions and 134 deletions
|
|
@ -74,7 +74,7 @@ pub struct Style {
|
|||
/// The width (thickness) of the rule line.
|
||||
pub width: u16,
|
||||
/// The radius of the line corners.
|
||||
pub radius: u16,
|
||||
pub radius: f32,
|
||||
/// The [`FillMode`] of the rule.
|
||||
///
|
||||
/// [`FillMode`]: enum.FillMode.html
|
||||
|
|
@ -94,7 +94,7 @@ impl StyleSheet for Default {
|
|||
Style {
|
||||
color: [0.6, 0.6, 0.6, 0.51].into(),
|
||||
width: 1,
|
||||
radius: 0,
|
||||
radius: 0.0,
|
||||
fill_mode: FillMode::Percent(90.0),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue