summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-09-08 04:55:16 +0200
committerLibravatar GitHub <noreply@github.com>2023-09-08 04:55:16 +0200
commit89d9c45d25e9bf89e48858b135bc7a2d41c757a8 (patch)
tree3d1c109d1e92f822cb841797788cccf55ce8b09c /widget
parentb5e7fb240cda919b66fb17a18cedd6d2ec064eaf (diff)
parent90cbab18b95a2a90a6a527280a6ca461203ea1b3 (diff)
downloadiced-89d9c45d25e9bf89e48858b135bc7a2d41c757a8.tar.gz
iced-89d9c45d25e9bf89e48858b135bc7a2d41c757a8.tar.bz2
iced-89d9c45d25e9bf89e48858b135bc7a2d41c757a8.zip
Merge pull request #2055 from matze/perceptual-gradient
Compute gradients in Oklab color space
Diffstat (limited to '')
-rw-r--r--widget/src/slider.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/slider.rs b/widget/src/slider.rs
index e41be7c9..bd73ea79 100644
--- a/widget/src/slider.rs
+++ b/widget/src/slider.rs
@@ -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
}
}