#egui #widgets #slider #double-slider

egui_double_slider

A double slider widget for egui

10 releases (6 breaking)

new 0.7.0 Mar 24, 2025
0.6.0 Mar 24, 2025
0.5.0 Feb 20, 2025
0.4.0 Feb 9, 2025
0.1.0 Nov 1, 2024

#325 in GUI

Download history 8/week @ 2024-11-27 161/week @ 2024-12-04 23/week @ 2024-12-11 111/week @ 2024-12-18 11/week @ 2024-12-25 8/week @ 2025-01-01 23/week @ 2025-01-08 1/week @ 2025-01-29 132/week @ 2025-02-05 52/week @ 2025-02-12 156/week @ 2025-02-19 68/week @ 2025-02-26 2/week @ 2025-03-05 14/week @ 2025-03-12

247 downloads per month

Apache-2.0

105KB
355 lines

egui Double Slider Widget

crates.io Docs Rust

A double slider widget for the GUI rust library egui.

screenshot

Add double slider along with eframe to your cargo.toml.

eframe = "0.31"
egui_double_slider = "0.7.0"

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)

Dependencies

~4.5–9.5MB
~90K SLoC