Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 962 Bytes

RadianceInterop.md

File metadata and controls

32 lines (25 loc) · 962 Bytes

Window - Radiance interoperability

In addition to core Swing interoperability, Aurora supports integrating with Radiance.

To start, add a dependency on the latest Radiance binaries:

dependencies {
  ...
  implementation("org.pushing-pixels:radiance-theming:6.0.1")
}

Then, before creating your first AuroraWindow, set Radiance skin in your auroraApplication function:

RadianceThemingCortex.GlobalScope.setSkin(MarinerSkin())

Now, Swing content created within SwingPanel scope will be themed by Radiance:

SwingPanel(
    modifier = Modifier.fillMaxWidth().height(90.dp),
    factory = {
        JPanel().apply {
            layout = FlowLayout(FlowLayout.CENTER)
            add(swingButton("Hello, Swing!") { println("I come from Swing") })
        }
    }
)