Convert Renderer::Theme to generic Widget type

This commit is contained in:
Héctor Ramón Jiménez 2024-01-21 17:56:01 +01:00
parent 545cc909c9
commit 7a50e9e8fb
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
88 changed files with 1219 additions and 1153 deletions

View file

@ -298,7 +298,7 @@ impl<C: ColorSpace + Copy> ColorPicker<C> {
range: RangeInclusive<f64>,
component: f32,
update: impl Fn(f32) -> C + 'a,
) -> Slider<'a, f64, C, iced::Renderer> {
) -> Slider<'a, f64, C> {
Slider::new(range, f64::from(component), move |v| update(v as f32))
.step(0.01)
}