Vedran
02/10/2024, 4:54 PMobject MyTheme {
val myButtonColors = ButtonDefaults.buttonColors(
backgroundColor = Color.Black,
contentColor = Color.White,
disabledBackgroundColor = Color.Gray,
disabledContentColor = Color.DarkGray
)
}
And then use it on button like this:
Button(
modifier = Modifier.width(140.dp).height(50.dp).pointerHoverIcon(PointerIcon.Hand),
colors = MyTheme.myButtonColors,
onClick = { onLoginClicked(username.value, password.value) }) {
Text("Login")
}
Sean Proctor
02/10/2024, 5:44 PMVedran
02/10/2024, 6:20 PMalitahasubfly
02/10/2024, 8:50 PM