Common
object CheckboxDefaults
Defaults used in Checkbox and TriStateCheckbox.
Functions
colors
@Composable
fun colors(
checkedColor: Color = MaterialTheme.colors.secondary,
uncheckedColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f),
checkmarkColor: Color = MaterialTheme.colors.surface,
disabledColor: Color = MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled),
disabledIndeterminateColor: Color = checkedColor.copy(alpha = ContentAlpha.disabled),
): CheckboxColors
Creates a CheckboxColors that will animate between the provided colors according to the Material specification.
Parameters
| checkedColor | the color that will be used for the border and box when checked |
| uncheckedColor | color that will be used for the border when unchecked |
| checkmarkColor | color that will be used for the checkmark when checked |
| disabledColor | color that will be used for the box and border when disabled |
| disabledIndeterminateColor | color that will be used for the box and border in a TriStateCheckbox when disabled AND in an ToggleableState.Indeterminate state. |