Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double Slider Widget #5332

Closed
wants to merge 5 commits into from
Closed

Conversation

hacknus
Copy link
Contributor

@hacknus hacknus commented Oct 30, 2024

This addresses the request for a double handed slider #2006 . I also updated the widget gallery and the demo app.

  • I have followed the instructions in the PR template

The widget is currently only working with f32. It is also not yet as neatly integrated into the ui-style as egui::Slider, there is no Value display yet and no text, suffix options.

Features:

  • dragging the two sliders.
  • pushing the next slider when they touch (separation_distance is configurable)
Bildschirmfoto 2024-10-30 um 22 50 40

Copy link

Preview available at https://egui-pr-preview.github.io/pr/5332-double_slider_widget
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@lucasmerlin
Copy link
Collaborator

This looks great, but unfortunately I think this is a bit too niche to be included in default egui. I suggest making a 3rd party crate out of it instead, and then add it to https://github.com/emilk/egui/wiki/3rd-party-egui-crates so others can find it!

@lucasmerlin lucasmerlin closed this Nov 1, 2024
@hacknus
Copy link
Contributor Author

hacknus commented Nov 1, 2024

understood!
I published it as a third party crate.
screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants