Open felixdivo opened 3 years ago
The constructor of JPanel calls setUIProperty("opaque", Boolean.TRUE)
. Maybe it would be sufficient to set it to non-opaque.
Yeah we likely need to set the JPanel's opaque property to FALSE if needed. Another case may be when Color.Unspecified
is passed in, as setting it as an AWT colour will not work either.
According to this it already works on macOS. We didn't intentionally implemented it for macOS though, but overall it is useful feature, and should be supported someday in Compose for all OS'es.
Any updates on this? It can be helpful to use SwingPanel as a placeholder for drawing which will temporarily fix the current latency issues with Compose Desktop.
@MohamedRejeb we have a few similar issues regarding "transparent interop" for different platforms - but it's likely not to be implemented due to various kinda fundamental reasons.
Regarding this issue on desktop/swing - it might work only in the case of rendering compose to swing graphics instead of on GPU surface directly. We have such mode under compose.swing.render.on.graphics
flag, but it's definitely not the thing to solve performance/latency issues.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Using
org.jetbrains.compose
@1.0.0-alpha4-build310
.Minimal example to reproduce: