DannyvanSwieten / rui

0 stars 0 forks source link

Multi-mode support for all widgets #19

Open stijnfrishert opened 1 year ago

stijnfrishert commented 1 year ago

This is quite an important one. Had to rewrite all components for Wire to be able to support "multi-mode".

What if the value type of a toggle isn't bool, but Option<bool>, and for slider Option<f32>, etc. That way, we can also show an "unknown value" state, which is what you often need in inspectors when having multiple items selected.