Skip to content

Commit

Permalink
Speed up scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
romainguy committed May 16, 2024
1 parent 0bee03b commit 7d973e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() }

Expand Down

0 comments on commit 7d973e9

Please sign in to comment.