Изменял цвета, не смог изменить курсор :(

This commit is contained in:
Кашин Максим 2023-12-23 22:01:46 +04:00
parent 194dab430b
commit ef9a391caf
2 changed files with 10 additions and 2 deletions

View File

@ -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()
)

View File

@ -51,6 +51,11 @@
"id": 8,
"login": "ickxkx",
"password": "dpldllflfl"
},
{
"id": 9,
"login": "привет",
"password": "привет"
}
],
"rents": [