DialogColor

fun DialogColor(state: BaseDialogState, color: MutableState<Color>, config: ColorPickerConfig = ColorPickerDefaults.config( shape = MaterialTheme.shapes.small, gridSize = if (isLandscape()) 6 else 4 ), texts: ColorPickerTexts = ColorPickerDefaults.texts(), 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

config

the color picker's behavior and appearance

texts

the texts (ColorPickerTexts) that are used inside this dialog - use ColorPickerDefaults.texts to provide your own data