Fix cursor error color

This commit is contained in:
Andrew 2024-06-27 14:53:37 +09:30
parent a8082494ba
commit 750dfb455d

View File

@ -119,7 +119,7 @@ fun SessionOutlinedTextField(
onValueChange = onChange, onValueChange = onChange,
modifier = Modifier.wrapContentHeight().fillMaxWidth().contentDescription(contentDescription), modifier = Modifier.wrapContentHeight().fillMaxWidth().contentDescription(contentDescription),
textStyle = textStyle.copy(color = LocalColors.current.text(isTextErrorColor)), textStyle = textStyle.copy(color = LocalColors.current.text(isTextErrorColor)),
cursorBrush = SolidColor(LocalColors.current.text(error != null)), cursorBrush = SolidColor(LocalColors.current.text(isTextErrorColor)),
keyboardOptions = KeyboardOptions.Default.copy(imeAction = ImeAction.Done), keyboardOptions = KeyboardOptions.Default.copy(imeAction = ImeAction.Done),
keyboardActions = KeyboardActions( keyboardActions = KeyboardActions(
onDone = { onContinue() }, onDone = { onContinue() },