martmists
05/02/2025, 7:59 AMSystem.setProperty("compose.swing.render.on.graphics", "true")
System.setProperty("compose.interop.blending", "true")
but for some reason I still can't draw over top of a SwingPanel, am I missing something?
For context, I'm using cameraK which displays as SwingPanel+ImagePanel (https://github.com/Kashif-E/CameraK/blob/main/cameraK/src/desktopMain/kotlin/com/kashif/cameraK/ui/CameraPreview.desktop.kt#L62) and I have my code more or less like this:
Box {
CameraPreview(...)
Text("Test")
Canvas { /* Draw overlays here, also tried Modifier.drawWithContent already */ }
}
Alexander Maryanovsky
05/02/2025, 8:31 AMapplication
Ivan Matkov
05/05/2025, 9:51 AMompose.swing.render.on.graphics
won't work for compose window, it's only for ComposePanel