DialogColor

fun DialogColor(state: DialogState, color: MutableState<Color>, texts: DialogColor.Texts = DialogColorDefaults.texts(), alphaSupported: Boolean = true, directEditSupported: Boolean = true, shape: Shape = MaterialTheme.shapes.small, gridSize: Int = if (isLandscape()) 6 else 4, labelStyle: DialogColor.LabelStyle = DialogColor.LabelStyle.Value, title: @Composable () -> Unit? = null, icon: @Composable () -> Unit? = null, style: ComposeDialogStyle = DialogDefaults.defaultDialogStyle(), buttons: DialogButtons = DialogDefaults.buttons(), options: DialogOptions = DialogDefaults.options(), onEvent: (event: DialogEvent) -> Unit = {})

Shows a color dialog

 

Basic Parameters: all params not described here are derived from Dialog, check it out for more details

Parameters

color

the selected color state

texts

the texts (DialogColor.Texts) that are used inside this dialog - use DialogColorDefaults.texts to provide your own data

alphaSupported

if true, the dialog supports color alpha values

directEditSupported

if true, the dialog allows direct editing of rgba values (in the custom color page)

shape

the shape of the color cells

gridSize

the size of the color grid

labelStyle

the DialogColor.LabelStyle for the color picker