I want to make a cross-platform desktop applicatio...
# gui
t
I want to make a cross-platform desktop application in Kotlin (don't care about mobile) with decent accessibility and a GUI toolkit that doesn't feel like pulling teeth to use (so... probably not JavaFX). Ideally something where I can write HTML and CSS for the UI, but actually control it from Kotlin. What are my options?
I've been using JavaFX and Tornado and it's just... such a slog. Positioning and styling are so much harder than they are in HTML, and the development cycle time is minutes instead of seconds. Pretty rough.
But I also really don't want to have to use Javascript. :-)
(Don't get me wrong, tornadofx takes a lot of the pain out of JavaFX. But it's still really awkward to use.)
Is Compose what I'm looking for?
a
1. You can use Kotlin/JS with electron (JetBrains has wrapper for it) https://github.com/JetBrains/kotlin-wrappers/blob/master/kotlin-electron%2FREADME.md 2. Try out one of the Kotlin/Native GUI frameworks like https://github.com/msink/kotlin-libui (no longer maintained) see https://discuss.kotlinlang.org/t/gui-for-kotlin-native/17598/8 and https://gist.github.com/Eng-Fouad/c810fae1ddcb0f0c4538299e31c78638 3. Compose Desktop (use Kotlin/JVM) which is the easiest to use and supported by Jetbrains