natinusala / borealis

Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
Apache License 2.0
257 stars 81 forks source link

Reimplement ListItem #95

Open natinusala opened 3 years ago

natinusala commented 3 years ago

Pretty self explanatory. The "valued" list items with a "value set" callback should be renamed to SettingListItem, with their value type as prefix (BoolSettingListItem...).

One issue is to figure out how to handle spacing between ListItems when putting multiple ones in a vertical Box. The same separator must be used when two items are close to each other, which means we need a way for an item to be aware of its surroundings.

An okay solution would be to add a "ListItemGroup" view that handles spacing between the items, the same way a checkbox group works on the web. List items should be usable with and without a group.

Depends on #96