https://kotlinlang.org logo
#compose
Title
# compose
a

Aaron Waller

09/22/2022, 2:08 AM
Why cant I define custom colors in Jetpack Compose?
Copy code
Button(
    onClick = { /*TODO*/ },
    colors = ButtonDefaults.buttonColors(backgroundColor = Color(0xF7B500))){
}
Is showing me a Grey button but it should be Yellow/Gold
k

Kirill Grouchnikov

09/22/2022, 2:23 AM
Try 0xFFF7B500 instead
t

Travis Griggs

09/22/2022, 11:38 PM
Discovered this yesterday myself, caught me off guard as well
2 Views