https://kotlinlang.org logo
Title
m

Michael Paus

04/07/2023, 3:34 PM
I got my first Compose desktop app running on Windows 11 (with msi installer and everything). There is one thing however which puzzles me. I have configured a custom icon for the app which seems to be correctly shown in all places except the little icon in the upper left corner of the application window. This is still showing a little Java Duke. Can anybody tell me how to get rid of that (forgive me Duke) and show my own icon there?
i

Igor Demin

04/07/2023, 3:39 PM
You have to define icon via
icon
argument (in
Window
or
singleWindowApplication
).
m

Michael Paus

04/07/2023, 4:37 PM
Ahh, thanks a lot. I was only looking here https://github.com/JetBrains/compose-multiplatform/tree/master/tutorials/Native_distributions_and_local_execution#platform-specific-options and did not realize that for this specific icon you have to do something else at a different place and I did not miss that icon on the mac.