Use Radians as a number directly in gradient example
This commit is contained in:
parent
c1139898c5
commit
d2294737c2
4 changed files with 55 additions and 19 deletions
|
|
@ -137,8 +137,8 @@ where
|
|||
}
|
||||
|
||||
/// Sets the step size of the [`Slider`].
|
||||
pub fn step(mut self, step: T) -> Self {
|
||||
self.step = step;
|
||||
pub fn step(mut self, step: impl Into<T>) -> Self {
|
||||
self.step = step.into();
|
||||
self
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue