diff options
author | 2022-05-26 00:40:27 +0200 | |
---|---|---|
committer | 2022-05-26 00:40:27 +0200 | |
commit | 3a820b45f336398c48f8bedf7b8c4b8af876efff (patch) | |
tree | 44d7597820aabe1f7b0fc9db053357170e25aeec /examples/tour/src | |
parent | 03eda9b162012c503ead649e5ccb95b7ef1d10ed (diff) | |
download | iced-3a820b45f336398c48f8bedf7b8c4b8af876efff.tar.gz iced-3a820b45f336398c48f8bedf7b8c4b8af876efff.tar.bz2 iced-3a820b45f336398c48f8bedf7b8c4b8af876efff.zip |
Implement theme styling for `Slider`
Diffstat (limited to 'examples/tour/src')
-rw-r--r-- | examples/tour/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 8bdc7f1d..c7ca8534 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -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)) }) |