Изменял цвета, не смог изменить курсор :(
This commit is contained in:
parent
194dab430b
commit
ef9a391caf
@ -28,6 +28,7 @@ import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.input.PasswordVisualTransformation
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.lifecycle.viewmodel.compose.viewModel
|
||||
@ -74,11 +75,12 @@ fun UserProfile(
|
||||
)
|
||||
BasicTextField(
|
||||
value = username,
|
||||
textStyle = TextStyle(color = MaterialTheme.colorScheme.background),
|
||||
onValueChange = { newValue -> username = newValue },
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.size(36.dp)
|
||||
.background(MaterialTheme.colorScheme.secondary, RoundedCornerShape(18.dp))
|
||||
.background(MaterialTheme.colorScheme.onBackground, RoundedCornerShape(18.dp))
|
||||
.padding(start = 13.dp, top = 8.dp)
|
||||
)
|
||||
|
||||
@ -88,11 +90,12 @@ fun UserProfile(
|
||||
)
|
||||
BasicTextField(
|
||||
value = password,
|
||||
textStyle = TextStyle(color = MaterialTheme.colorScheme.background),
|
||||
onValueChange = { newValue -> password = newValue },
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.size(36.dp)
|
||||
.background(MaterialTheme.colorScheme.secondary, RoundedCornerShape(18.dp))
|
||||
.background(MaterialTheme.colorScheme.onBackground, RoundedCornerShape(18.dp))
|
||||
.padding(start = 13.dp, top = 8.dp),
|
||||
visualTransformation = PasswordVisualTransformation()
|
||||
)
|
||||
|
@ -51,6 +51,11 @@
|
||||
"id": 8,
|
||||
"login": "ickxkx",
|
||||
"password": "dpldllflfl"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"login": "привет",
|
||||
"password": "привет"
|
||||
}
|
||||
],
|
||||
"rents": [
|
||||
|
Loading…
Reference in New Issue
Block a user