mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-05-13 08:11:26 +00:00
When users run/package application we will configure Compose to work as standalone application. It means we will override some global Swing properties in Compose initialization function: - sets system property `apple.laf.useScreenMenuBar` to true - sets system property `sun.java2d.uiScale`/`sun.java2d.uiScale.enabled` automatically on Linux - sets UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()) When users don't use those tasks (when they use Compose in an existing Swing application, or in an IDEA plugin), this property will not be set, and so we will not override Swing globals.
JetBrains Compose gradle plugin for easy configuration
Environment variables:
COMPOSE_GRADLE_PLUGIN_VERSION- version of pluginCOMPOSE_GRADLE_PLUGIN_COMPOSE_VERSION- version of JetBrains Compose used by the plugin