You should be able to use the standalone theme for...
# jewel
s
You should be able to use the standalone theme for previews, but it's not a story we've put much thought into because the desktop previews are (were?) fundamentally broken
And at this point I'm hoping more in hot reload
No need for previews when you have hot reload :D it's moving forward quickly and it's stable enough already, hopefully we'll have news on that front
f
Do hot reloads work for IJ plugin dev? Or just Desktop. We also want to do screenshot testing in CI, so we do need to have the previews to generate the screenshots
c
I thought desktop previews work in the IDE
and i think latest canary for AS also supports desktop previews
s
They didn't use to work at all. Now they maybe do, since JetBrains has resumed working on their CMP support in IntelliJ, but I really haven't tried.
@Francisco Noriega for screenshot tests you can use the standalone theme, we have a couple such tests in studio (although the Compose for Desktop tooling for those is still very rudimentary)
There is pretty much no documentation but the entry point is
runSkikoComposeUiTest
:
Copy code
@Test
fun test() = runSkikoComposeUiTest {
  setContent { ... }
  // ...
  val image = captureToImage()
}
s
We just recently started to work on integrating Hot Reload for IJ plugin development. Its still early and we're collecting feedback, but I can help trying to set it up
🦜 3
f
@Sebastian Sellmair [JB] that would be amazing, I'd really appreciate it!
s
I can offer to meet in one week. Unfortunately, I have a presentation this week which kind of puts a lot of additional load on me, making support hard. Would that work for you?
f
yeah, that works for me 🙂 again I appreciate it a lot