<@U0B854PM2> are there any plans to provide some k...
# jewel
f
@seb are there any plans to provide some kind of interop to be able to customize toolbar actions of our ComposePanel using compose, instead of AnAction? (or like a a compose ready version of AnAction, for dropdowns, buttons & popups). I've been dealing with IJ's toolbar api and its definitely a bit of a 😵‍💫
s
Not in the short term — you can create your own ActionIconButtons and manage them however you want, but we don't have integration into the actions system for that (not sure we can, without changes in the platform)
If you want to plug into the Actions system, you need to use AnAction.
f
yup, just wondering if there where plans to have ComposeActionButton: AnAction kind of thing going on to simplify ui dev of toolbars, etc
s
Not for now. Maybe in the future, but it's not high priority since AnActions are simple to use and complex to replicate
f
@seb well lol, maybe once you know how to use it but it took me forever to figure out this: https://kotlinlang.slack.com/archives/C0CMKCL87/p1727470462283299?thread_ts=1727300196.333389&amp;cid=C0CMKCL87 xD
s
Them being poorly documented is a different story altogether :D what I normally do is copy other similar actions that exist already in the IDE. The UI inspector (needs internal mode) gives you the action class, and then you can look up the sources
Not all cases are as straightforward of course!
In this case though compose wouldn't have helped since we don't have native popups yet (they sort of exist in CfD but they're experimental and our... Err, experiments, showed they have issues still)