https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
p

Pablichjenkov

03/09/2023, 5:30 PM
Is there an API on the jvm target to show icons in the window frame. See below, notice the back arrow icon and refresh icon. It was taken on a Mac Chrome App
a

Alexander Maryanovsky

03/09/2023, 6:53 PM
Not in Compose for Desktop itself.
and not in AWT, to the best of my knowledge
If you really want to, you can make an undecorated window and draw the window title yourself. Then you can do anything.
p

Pablichjenkov

03/09/2023, 7:20 PM
undecorated window
🤔, sounds like another term to my dictionary. You have some documentation/example to see what you refer to. Is that API still accessible from compose-multiplatform for jvm API, or I need to create custom platform bindings?
a

Alexander Maryanovsky

03/09/2023, 8:31 PM
It’s just
Window(undecorated=true)
or
singleWindowApplication(undecorated=true)
It’s part of the regular compose for desktop
p

Pablichjenkov

03/09/2023, 9:29 PM
Ahh 😯 ok. Thanks so much Sr.
a

Alexander Maryanovsky

03/09/2023, 10:12 PM
np
5 Views