mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-19 21:28:26 +00:00
Simplify outline text style
This commit is contained in:
parent
72dccaa1d3
commit
4afec51de5
@ -86,8 +86,6 @@ fun SessionOutlinedTextField(
|
||||
.padding(top = 28.dp, bottom = 24.dp)
|
||||
.padding(horizontal = 21.dp)
|
||||
) {
|
||||
val mergedTextStyle = textStyle.merge(TextStyle(color = LocalColors.current.text(error != null)))
|
||||
|
||||
if (text.isEmpty()) {
|
||||
Text(
|
||||
text = placeholder,
|
||||
@ -103,7 +101,7 @@ fun SessionOutlinedTextField(
|
||||
value = text,
|
||||
onValueChange = onChange,
|
||||
modifier = Modifier.wrapContentHeight().fillMaxWidth(),
|
||||
textStyle = mergedTextStyle,
|
||||
textStyle = textStyle.copy(color = LocalColors.current.text(error != null)),
|
||||
cursorBrush = SolidColor(LocalColors.current.text(error != null)),
|
||||
keyboardOptions = KeyboardOptions.Default.copy(imeAction = ImeAction.Done),
|
||||
keyboardActions = KeyboardActions(
|
||||
|
Loading…
x
Reference in New Issue
Block a user