Implement theme styling for Slider

This commit is contained in:
Héctor Ramón Jiménez 2022-05-26 00:40:27 +02:00
parent 03eda9b162
commit 3a820b45f3
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
7 changed files with 118 additions and 91 deletions

View file

@ -776,7 +776,7 @@ fn color_slider(
state: &mut slider::State,
component: f32,
update: impl Fn(f32) -> Color + 'static,
) -> Slider<f64, StepMessage> {
) -> Slider<f64, StepMessage, iced::Renderer> {
Slider::new(state, 0.0..=1.0, f64::from(component), move |c| {
StepMessage::TextColorChanged(update(c as f32))
})