slint icon indicating copy to clipboard operation
slint copied to clipboard

Feature/inverted slider 2025

Open ccric opened this issue 11 months ago • 4 comments

Changed slider value calculation to allow inverting the slider by switching minimum and maximum boundaries. Closes #4705

ccric avatar Jan 17 '25 01:01 ccric

My initial intention was to invert the values, but that makes more sense together with also inverting the drawing. I added that to the cosmic, cupertino, fluent and material style. The material style has some bug when drawing the sliders vertical, but that doesn't seem to be related with my changes. I added some variants of the slider to the gallery example.

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.

ccric avatar Jan 17 '25 22:01 ccric

Is this PR still valid? @FloVanGH have the requested changes been done?

ogoffart avatar Apr 23 '25 16:04 ogoffart

Is this PR still valid? @FloVanGH have the requested changes been done?

The qt inverted slider still does not work.

ghost avatar Apr 28 '25 05:04 ghost

I have also noticed, that in the slider example on the gallery the layout flickers. I think it would make sense to round the values to display it as text.

ghost avatar Apr 28 '25 05:04 ghost