rerun-io / rerun

Visualize streams of multimodal data. Fast, easy to use, and simple to integrate. Built in Rust using egui.
https://rerun.io/
Apache License 2.0
5.68k stars 257 forks source link

Wrapping lone list item in `list_item_scope` is annoying #6402

Open abey79 opened 1 month ago

abey79 commented 1 month ago

ListItem are sometime used as a single item in isolation, eg to emulate a button or a title (e.g. component_path_button_to or the blue titles in the selection panel). In such instance, it's a bit annoying to have to wrap it a in list_item_scope. Maybe there could be some helper like ListItem::lone(id_source) (with a better name) to auto-wrap it in the scope.

abey79 commented 3 days ago

For the last point, I see two cases:

For these, it is ok to have an explicit scope.