|
|
@ -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,
|
|
|
|