Open martenbjork opened 1 year ago
@martenbjork The usual "egui" way of doing this is to use checkboxes instead of regular buttons as it's currently done. This is visible, e.g., in the rerun menu:
What immediately stands out is:
How do you feel about (1)? Note that this is the same checkmark for regular, non-menu checkbox:
As for (2), I'll fix the checkbox color to match the menu, let me know if I should go the other way round.
Rerun:
https://github.com/rerun-io/rerun/assets/875708/bf19e53b-fb45-4142-aadc-20f4957402ba
Mac OS:
https://github.com/rerun-io/rerun/assets/875708/c5cb61be-fc1c-4792-90aa-f09967f79b97
Figma:
https://github.com/rerun-io/rerun/assets/875708/eaf63a23-c5d9-4e90-8bfc-38ce12f03272
An example from Rerun getting this right. Look how big, trustworthy and predictable this toggle feels. Super solid! (Especially when we get rid of the scaling of the arrow, then it will just be one big hover area reacting predictably.)
https://github.com/rerun-io/rerun/assets/875708/04bf929e-780c-40da-8e19-8533f05e1797
Implementation:
Design system:
Figma link
Behind the scenes:
TODO
4px
horizontally and8px
vertically6px
horizontally20px