Commit graph

3 commits

Author SHA1 Message Date
Michael Aaron Murphy
59a913c15d feat!(segmented_button): Add context menu support and integrations 2024-04-18 17:18:53 +02:00
Eduardo Flores
0b47efe1de improv(menu): simplify menu construction.
- Added `MenuAction` trait to call the `message` method on button press.
- Added two new methods to construct a MenuTree.
- Added MenuItem enum to represent an action or a separator in a MenuTree.
- Added menu example.
- Moved Modifier enum and KeyBind struct to libcosmic.
- Moved menu_button macro to libcosmic.
2024-03-16 19:00:12 -06:00
Jeremy Soller
bad4400779 Add menu code, adapted from iced_aw 2023-11-16 08:06:07 -07:00