A double slider widget for the GUI rust library egui.
Add double slider along with eframe
to your cargo.toml
.
eframe = "0.31"
egui_double_slider = "0.7.1"
To run the example:
cargo run --example example
Example code:
use egui_double_slider::DoubleSlider;
use egui;
fn main() {
egui::__run_test_ui(|ui| {
ui.add(
DoubleSlider::new(
&mut self.slider_val_low_1,
&mut self.slider_val_high_1,
10.0..=300.0,
)
.width(width)
.separation_distance(10.0),
);
});
}
TODO:
- better connection to egui ctx style (like the normal Slider widget)