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

Enhance Slider and VerticalSlider functionality #2100

Merged
merged 7 commits into from
Jan 31, 2024

Conversation

jpttrssn
Copy link
Contributor

@jpttrssn jpttrssn commented Sep 24, 2023

This attempts to address #900.

  • Add optional default behavior
    • Add a default field
    • Add a default() method to set the default field
    • A double-click, ctrl-click or command-click will set the slider to the default value
  • Add optional fine-grained control
    • Add an optional step_fine field
    • Add a step_fine() method to set the step_fine field
    • Use step_fine in place of step while shift is pressed
  • Add increment/decrement via up/down keys
  • Update Slider and VerticalSlider examples

@hecrj hecrj added this to the 0.12 milestone Jan 18, 2024
@hecrj hecrj added feature New feature or request widget addition labels Jan 18, 2024
* Add optional default behavior
  * Add a `default` field
  * Add a `default()` method to set the `default` field
  * A double-click, ctrl-click or command-click will set the slider to the default value
* Add optional fine-grained control
  * Add an optional `step_fine` field
  * Add a `step_fine()` method to set the `step_fine` field
  * Use `step_fine` in place of `step` while shift is pressed
* Add increment/decrement via up/down keys
* Update `Slider` and `VerticalSlider` examples
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem reasonable. Thanks! 🙇

I made some changes here and there, but we can merge!

@hecrj hecrj enabled auto-merge January 31, 2024 21:08
@hecrj hecrj merged commit 4fcbcda into iced-rs:master Jan 31, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition feature New feature or request widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants