Join Slack
Is it possible to create a menu bar app on macOS with compose-desktop?
# compose-desktop
s
saket
07/05/2021, 3:56 AM
Is it possible to create a menu bar app on macOS with compose-desktop?
k
Kirill Grouchnikov
07/05/2021, 4:01 AM
https://github.com/JetBrains/compose-jb/tree/master/tutorials/Tray_Notifications_MenuBar_new
s
saket
07/05/2021, 4:12 AM
Thanks Kirill, I already looked at this example, but
MenuBar
looks limited to text buttons. I'd like to add arbitrary components. Is that currently possible? Here's an example:
saket
07/05/2021, 4:25 AM
This SO answer says it is possible through AWT so I
could
try interop-ing it with compose.
https://stackoverflow.com/questions/13481504/creating-an-nsstatusitem-menubar-app-in-java
k
Kirill Grouchnikov
07/05/2021, 4:39 AM
This is different from menu bar. This is a "daemon" app that doesn't have main UI window and is only accessible through the tray icon
s
saket
07/05/2021, 4:57 AM
I see. The window also needs to be anchored with the tray icon. Do you know if this something possible with the current set of APIs?
saket
07/05/2021, 5:31 AM
I submitted a feature request:
https://github.com/JetBrains/compose-jb/issues/850
👍 2
698
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by