Implement theme styling for Slider
This commit is contained in:
parent
03eda9b162
commit
3a820b45f3
7 changed files with 118 additions and 91 deletions
|
|
@ -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))
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue