Skip to content

Commit

Permalink
text field: background stays gray
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Mar 16, 2022
1 parent b59ca20 commit 5a4c677
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ui/src/main/java/kiwi/orbit/compose/ui/controls/TextField.kt
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,6 @@ public fun TextField(
InputState.NormalError, InputState.FocusedError -> OrbitTheme.colors.critical.main
}
}
val backgroundColor = transition.animateColor(
transitionSpec = { tween(durationMillis = AnimationDuration) },
label = "backgroundColor"
) {
when (it) {
InputState.Focused, InputState.FocusedError -> OrbitTheme.colors.surface.main
else -> OrbitTheme.colors.surface.subtle
}
}

BasicTextField(
value = textFieldValue,
Expand All @@ -154,7 +145,7 @@ public fun TextField(
modifier = Modifier
.then(autoBringIntoViewFocusModifier)
.border(1.dp, borderColor.value, OrbitTheme.shapes.normal)
.background(backgroundColor.value, OrbitTheme.shapes.normal),
.background(OrbitTheme.colors.surface.subtle, OrbitTheme.shapes.normal),
enabled = enabled,
readOnly = readOnly,
textStyle = mergedTextStyle,
Expand Down

0 comments on commit 5a4c677

Please sign in to comment.