DialogColor

fun DialogColor(state: BaseDialogState, color: MutableState<Color>, texts: ColorPickerTexts = ColorPickerDefaults.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 (ColorPickerTexts) that are used inside this dialog - use ColorPickerDefaults.texts to provide your own data

alphaSupported

if true, the dialog supports color alpha values

directEditSupported

if true, the custom color page allows direct editing of the color value

shape

the shape of the color cells

gridSize

the size of the color grid

labelStyle

the DialogColor.LabelStyle for the color picker