Vukašin Vojinović
127ce17b85
improv: add window border
2024-11-05 10:02:19 +01:00
Ashley Wulber
0491c4baaa
libcosmic updates
2024-10-18 14:04:39 -04:00
Jeremy Soller
dc97166f91
fix(segmented_button): diff the context menu
2024-10-14 11:21:40 -06:00
Jeremy Soller
973018fdb7
Fix style of menu folders
2024-09-27 09:34:37 -06:00
Jeremy Soller
cf6a35474e
Add meu item for disabled buttons
2024-09-27 09:14:03 -06:00
Vukašin Vojinović
271b71958a
fix(menu): use accent color for checkbox
...
Uses the accent color for the checkmark, to match designs.
2024-09-19 13:09:20 +02:00
Michael Aaron Murphy
f12de010ec
fix!(widget): rename button function to button::custom
2024-09-16 11:36:42 -06:00
Vukašin Vojinović
1046778d01
improv: spacing/padding fixes
2024-09-04 18:00:16 +02:00
Jeremy Soller
04c05ae6a1
fix(menu): Ignore Key::Character case when matching KeyBind
2024-08-29 10:08:12 -06:00
Vukašin Vojinović
4c04792481
improv(menu): add horizontal padding to menu divider
2024-08-09 20:35:42 +02:00
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