some code polishing

This commit is contained in:
brreynie 2023-05-13 17:24:46 +02:00
parent 4b09a8011c
commit 360fb122f7

View file

@ -101,15 +101,11 @@ fun ColorPicker(
) { ) {
Button( Button(
onClick = { onColorChange(Color.generateRandomArgb()) }, onClick = { onColorChange(Color.generateRandomArgb()) },
modifier = Modifier modifier = Modifier.fieldModifier(),
.fieldModifier(),
colors = ButtonDefaults.buttonColors( colors = ButtonDefaults.buttonColors(
backgroundColor = Color(uiState.color), backgroundColor = Color(uiState.color),
// contentColor = MaterialTheme.colors.onSurface.copy(alpha = 0.4f),
), ),
shape = RoundedCornerShape(4.dp), shape = RoundedCornerShape(4.dp),
// border = BorderStroke(1.dp, MaterialTheme.colors.onSurface.copy(alpha = 0.4f)),
elevation = null,
) { ) {
Text(text = "Regenerate color") Text(text = "Regenerate color")
} }