If you were curious, how to create application wit...
# compose-desktop
o
👍 3
🙌 8
👀 1
i
Application/ComposableWindow
is a very experimental prototype of Composable Window API and only available in
imageviewer
example: https://github.com/JetBrains/compose-jb/blob/master/examples/imageviewer/common/src/desktopMain/kotlin/example/imageviewer/utils/Application.kt
👍 1
s
@Igor Demin so
ComposableWindow
will eventually replace
androidx.compose.desktop.Window(…)
..rt?
o
we’re considering making this change, and now evaluating feasibility of such approach
👍 1
s
@olonho thanks! I was going through the splash screen code changes, in that
onContentReady()
updates the mutableState variable from
invokeLater
swing event dispatcher thread (https://github.com/JetBrains/compose-jb/blob/728b4d5f762f5d901a869824c4b5a2da8b516[…]topMain/kotlin/example/imageviewer/model/DesktopContentState.kt). Is it mandatory?
o
nope, but must update it after few operations performed on the main thread