JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.27k stars 1.11k forks source link

Context menu lacks some capabilities #2859

Open adrientetar opened 1 year ago

adrientetar commented 1 year ago
m-sasha commented 1 year ago

Thanks, we'll discuss this with the team.

adrientetar commented 1 year ago

@m-sasha have any update on the discussion?

m-sasha commented 1 year ago

I apologize for taking a long time; we were busy with M1 and Kotlinconf. And now our team lead is on vacation, so unfortunately it'll take a little longer.

m-sasha commented 1 year ago

Hi. So, these suggestions are good, but right now we're focusing on other issues for the desktop. We should, however, add material3 soon-ish, which should address some of the requests here. And of course, we will get to polishing our context menu APIs some time.

dzirbel commented 10 months ago

In the meantime, I've put together a library that adds quite a bit of this missing functionality (icons, dividers, sub-menus, styling, etc): https://github.com/dzirbel/compose-material-context-menu. I hope this can cover most use cases until the team can dedicate time toward the builtin representation.

I also ran into a few limitations along the way, which I'll raise in a separate issue for discussion.

PMARZV commented 1 month ago

a simple modifier in context menu and a composable function to ContextMenuItem would be awesome! It lacks customization and that rect shape looks terrible😅