Commit graph

22 commits

Author SHA1 Message Date
Michael Aaron Murphy
7e30695c52
chore(menu): fix warnings about public visibility 2024-06-27 00:19:03 +02:00
Michael Aaron Murphy
bd48ad0fb5 fix(menu): use icons and fix misaligned button labels 2024-05-30 13:57:47 +02:00
Michael Aaron Murphy
f9f8eb51cb
fix(menu_bar): root text will inherit icon color from header 2024-05-21 04:34:35 +02:00
Michael Aaron Murphy
31ea71deef
refactor(menu): remove redundant entity argument on MenuActions 2024-05-20 00:50:17 +02:00
Michael Aaron Murphy
b3bce0740e
refactor(menu): add menu::bar as shorthand for MenuBar::new 2024-05-20 00:45:26 +02:00
Michael Aaron Murphy
1355588723 improv(button): specialize button for cosmic, and apply alpha to header buttons 2024-05-17 20:58:38 +02:00
Michael Aaron Murphy
59a913c15d feat!(segmented_button): Add context menu support and integrations 2024-04-18 17:18:53 +02:00
Eduardo Flores
db71a32c38 improv(menu): add more types of menu items.
- Added `Checkbox` and `Folder` variants to `MenuItem`.
- Exported `menu_button` macro.
2024-03-18 15:06:37 +01:00
Eduardo Flores
171e697738 improv(menu): add documentation. 2024-03-16 19:00:12 -06: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
Ashley Wulber
f4ad098647 wip: update to use latest iced 2024-02-06 11:28:27 -05:00
Jeremy Soller
5b2ac941c3 Fixes for menu
- Invalidate layout when menu is opened
- Align tree with menu widget when handling menu events
2024-01-09 10:13:14 -07:00
wiiznokes
0e0aed9bde
fix(menu_bar): temporarily allow invalid reference cast 2024-01-05 20:57:55 +01:00
Ashley Wulber
a4d1b1b651 refactor: cosmic-config granular key updates and remove unused generics from cosmic-theme 2024-01-02 15:12:14 +01:00
Jeremy Soller
4b8fb4646b Menu: align tree in MenuBounds 2023-12-06 14:07:16 -07:00
Jeremy Soller
c2aae2e79b Menu: align tree in MenuState::layout 2023-12-06 14:07:16 -07:00
Jeremy Soller
6a8447d70f Menu: unsafe hack to diff children of flattened trees 2023-12-06 14:07:16 -07:00
Jeremy Soller
fb4669591a Menu: align tree items with menu roots in MenuBar::layout 2023-12-06 14:07:16 -07:00
Ashley Wulber
fcfe9ebc59 chore: update iced 2023-12-04 17:53:24 -05:00
Ashley Wulber
17bc373990 clippy fixes 2023-12-04 17:53:24 -05:00
Ashley Wulber
9202383596 chore: update to 0.12 2023-12-04 17:53:24 -05:00
Jeremy Soller
bad4400779 Add menu code, adapted from iced_aw 2023-11-16 08:06:07 -07:00