mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-21 12:48: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(top = 28.dp, bottom = 24.dp)
|
||||||
.padding(horizontal = 21.dp)
|
.padding(horizontal = 21.dp)
|
||||||
) {
|
) {
|
||||||
val mergedTextStyle = textStyle.merge(TextStyle(color = LocalColors.current.text(error != null)))
|
|
||||||
|
|
||||||
if (text.isEmpty()) {
|
if (text.isEmpty()) {
|
||||||
Text(
|
Text(
|
||||||
text = placeholder,
|
text = placeholder,
|
||||||
@ -103,7 +101,7 @@ fun SessionOutlinedTextField(
|
|||||||
value = text,
|
value = text,
|
||||||
onValueChange = onChange,
|
onValueChange = onChange,
|
||||||
modifier = Modifier.wrapContentHeight().fillMaxWidth(),
|
modifier = Modifier.wrapContentHeight().fillMaxWidth(),
|
||||||
textStyle = mergedTextStyle,
|
textStyle = textStyle.copy(color = LocalColors.current.text(error != null)),
|
||||||
cursorBrush = SolidColor(LocalColors.current.text(error != null)),
|
cursorBrush = SolidColor(LocalColors.current.text(error != null)),
|
||||||
keyboardOptions = KeyboardOptions.Default.copy(imeAction = ImeAction.Done),
|
keyboardOptions = KeyboardOptions.Default.copy(imeAction = ImeAction.Done),
|
||||||
keyboardActions = KeyboardActions(
|
keyboardActions = KeyboardActions(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user