revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

feat(menu): add more menu item features #1042

Closed zbaylin closed 3 years ago

zbaylin commented 3 years ago

I totally forgot this in the original menu PR, but @bryphe mentioned it in onivim/oni2#2969.

This just adds Menu.Item.createSeparator, which creates a separator item.

On macOS, it looks like this:

image
zbaylin commented 3 years ago

I realized there are other things we could use (like enabling/disabling items), so I decided to broaden the scope of the PR

bryphe commented 3 years ago

I'll go ahead and merge this so I can pick it up in Onivim :sunglasses: