some code polishing
This commit is contained in:
parent
4b09a8011c
commit
360fb122f7
1 changed files with 1 additions and 5 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue