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

feat: add slider widget with horizontal and vertical support #853

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Cupnfish
Copy link
Contributor

  • Implement Slider widget with customizable colors, step size, and radii
  • Add horizontal and vertical axis support with proper coordinate handling
  • Include hover effects and accessibility features
  • Add comprehensive tests for interaction and rendering
  • Integrate slider into widget gallery example with direction switching
  • Add documentation and example usage
  • Fix edge cases for min/max values and step adjustments

There is still an issue where my tests are not outputting images for some reason. Can anyone help me with this?

- Implement Slider widget with customizable colors, step size, and radii
- Add horizontal and vertical axis support with proper coordinate handling
- Include hover effects and accessibility features
- Add comprehensive tests for interaction and rendering
- Integrate slider into widget gallery example with direction switching
- Add documentation and example usage
- Fix edge cases for min/max values and step adjustments
@Cupnfish Cupnfish marked this pull request as ready for review January 27, 2025 11:00
@Cupnfish
Copy link
Contributor Author

#819


#[must_use]
/// Set the callback for editing state changes.
pub fn on_editing_changed(
Copy link
Member

Choose a reason for hiding this comment

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

I was hoping to see some use case for this.
Also "editing state changes" is extremely vague terminology.

Copy link
Member

Choose a reason for hiding this comment

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

I've not reviewed this code

Copy link
Contributor

@waywardmonkeys waywardmonkeys left a comment

Choose a reason for hiding this comment

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

All that I have time for right now…

- Move slider-related constants from Slider impl to theme module
- Change color fields from Color to Brush type for better flexibility
- Rename color-related methods to thumb_color for clarity
- Remove macro-based property handling in favor of explicit updates
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.

4 participants