Merge branch 'github/main'

pull/305/head
Automerger 2 years ago
commit 2531f1be9f

@ -72,7 +72,9 @@ fun NiaToggleButton(
onClick = { onCheckedChange(!checked) }, onClick = { onCheckedChange(!checked) },
modifier = modifier modifier = modifier
.size(size) .size(size)
.toggleable(value = checked, enabled = enabled, role = Role.Button, onValueChange = {}) .toggleable(value = checked, enabled = enabled, role = Role.Button, onValueChange = {
onCheckedChange(!checked)
})
.drawBehind { .drawBehind {
drawCircle( drawCircle(
color = if (checked) checkedBackgroundColor else backgroundColor, color = if (checked) checkedBackgroundColor else backgroundColor,

Loading…
Cancel
Save