PaintColorPalette

@Composable
fun PaintColorPalette(modifier: Modifier = Modifier, controller: SketchbookController, colorList: List<Color> = defaultColorList(), theme: PaintColorPaletteTheme = PaintColorPaletteTheme(), initialSelectedIndex: Int = -1, onColorSelected: (Int, Color) -> Unit? = null, header: @Composable () -> Unit? = null, content: @Composable (Int, Color) -> Unit? = null, footer: @Composable () -> Unit? = null)

PaintColorPalette provides a list of color palette. With SketchbookController it will take and apply the selected color to the Sketchbook automatically.

Parameters

modifier

Modifier to decorate the color palette.

controller
colorList

List of color-palette to show them as a row.

theme

A theme that has a collection parameters to customize PaintColorPalette.

initialSelectedIndex

Sets a selected index initially.

onColorSelected

Listener to track a selected Color.

content

Custom content to build the palette item.