diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e95b5b24..7f6d068c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] collection = "1.4.0" -compose = "1.6.10-rc02" +compose = "1.6.10-rc03" jewel = "0.19.3" jna = "5.14.0" junit4 = "4.13.2" diff --git a/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/KotlinExplorer.kt b/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/KotlinExplorer.kt index 742ece8f..f31fea36 100644 --- a/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/KotlinExplorer.kt +++ b/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/KotlinExplorer.kt @@ -59,6 +59,8 @@ import org.fife.ui.rsyntaxtextarea.SyntaxConstants import org.fife.ui.rsyntaxtextarea.Theme import org.fife.ui.rtextarea.RTextScrollPane import org.fife.ui.rtextarea.SearchEngine +import org.jetbrains.jewel.foundation.ExperimentalJewelApi +import org.jetbrains.jewel.foundation.enableNewSwingCompositing import org.jetbrains.jewel.foundation.theme.JewelTheme import org.jetbrains.jewel.intui.standalone.theme.IntUiTheme import org.jetbrains.jewel.intui.standalone.theme.darkThemeDefinition @@ -489,9 +491,10 @@ private fun RSyntaxTextArea.updateStyle(explorerState: ExplorerState) { font = font.deriveFont(if (presentation) FontSizePresentationMode else FontSizeEditingMode) } +@OptIn(ExperimentalJewelApi::class) fun main() = application { - // TODO: Needed to properly composite Compose on top of Swing - // System.setProperty("compose.interop.blending", "true") + // Faster scrolling in Swing components + enableNewSwingCompositing() val explorerState = remember { ExplorerState() }