CheckboxDefaults

object CheckboxDefaults


Contains the default values used by Checkbox.

Summary

Public functions

CheckboxColors
@Composable
colors(
    checkedBoxColor: Color,
    checkedCheckmarkColor: Color,
    uncheckedBoxColor: Color,
    uncheckedCheckmarkColor: Color
)

Creates a CheckboxColors for use in a Checkbox.

Public functions

colors

@Composable
fun colors(
    checkedBoxColor: Color = MaterialTheme.colors.secondary,
    checkedCheckmarkColor: Color = checkedBoxColor,
    uncheckedBoxColor: Color = contentColorFor( MaterialTheme.colors.primary .copy(alpha = 0.5f) .compositeOver(MaterialTheme.colors.surface) ),
    uncheckedCheckmarkColor: Color = uncheckedBoxColor
): CheckboxColors

Creates a CheckboxColors for use in a Checkbox.

Parameters
checkedBoxColor: Color = MaterialTheme.colors.secondary

The box color of this Checkbox when enabled and checked.

checkedCheckmarkColor: Color = checkedBoxColor

The check mark color of this Checkbox when enabled and checked.

uncheckedBoxColor: Color = contentColorFor( MaterialTheme.colors.primary .copy(alpha = 0.5f) .compositeOver(MaterialTheme.colors.surface) )

The box color of this Checkbox when enabled and unchecked.

uncheckedCheckmarkColor: Color = uncheckedBoxColor

The check mark color of this Checkbox when enabled and unchecked.