-
Notifications
You must be signed in to change notification settings - Fork 635
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
Feature/inverted slider 2025 #7389
base: master
Are you sure you want to change the base?
Conversation
…tching minimum and maximum boundaries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for the PR. Three additional things:
The adjustment for the qt style is missing. For that you should check slider.rs
. If you need helps just let me know.
The intention is if minimum > maximum then the slider is also drawn inverted, right? I checked your branch with the cosmic style and there the slider wasn't drawn inverted.
Could you add an example to the gallery controls_page.slint
, please.
docs/astro/src/content/docs/reference/std-widgets/basic-widgets/slider.mdx
Outdated
Show resolved
Hide resolved
My initial intention was to invert the values, but that makes more sense together with also inverting the drawing. For the qt-backend: I changed the min/max boundary of the value. But I have not figured out how to render the inverted slider correct, yet. |
Changed slider value calculation to allow inverting the slider by switching minimum and maximum boundaries.
Closes #4705