From d1619bf36db3cd4d7c17ef0fe19b90de719629b9 Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Tue, 12 Sep 2023 12:46:40 +0200 Subject: [PATCH] Fix crash in standalone sample --- core/src/main/kotlin/org/jetbrains/jewel/TextArea.kt | 2 +- .../kotlin/org/jetbrains/jewel/samples/standalone/Main.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/kotlin/org/jetbrains/jewel/TextArea.kt b/core/src/main/kotlin/org/jetbrains/jewel/TextArea.kt index 01d5934f27..1dbc198e1e 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/TextArea.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/TextArea.kt @@ -124,7 +124,7 @@ fun TextArea( style = style, textStyle = textStyle, interactionSource = interactionSource, - ) { innerTextField, state -> + ) { innerTextField, _ -> TextAreaDecorationBox( innerTextField = innerTextField, contentPadding = style.metrics.contentPadding, diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/Main.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/Main.kt index ec41aed913..e74a4230ff 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/Main.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/Main.kt @@ -55,9 +55,9 @@ fun main() { var swingCompat by remember { mutableStateOf(false) } val theme = if (isDark) IntUiTheme.darkThemeDefinition() else IntUiTheme.lightThemeDefinition() - val resourceLoader = LocalResourceLoader.current - IntUiTheme(theme, swingCompat) { + val resourceLoader = LocalResourceLoader.current + val windowBackground = if (isDark) { IntUiTheme.colorPalette.grey(1) } else {