-
- All Implemented Interfaces:
public final class PaintColorPaletteKt
-
-
Method Summary
Modifier and Type Method Description final static UnitPaintColorPalette(Modifier modifier, SketchbookController controller, List<Color> colorList, PaintColorPaletteTheme theme, Integer initialSelectedIndex, Function2<Integer, Color, Unit> onColorSelected, Function0<Unit> header, Function2<Integer, Color, Unit> content, Function0<Unit> footer)PaintColorPalette provides a list of color palette. -
-
Method Detail
-
PaintColorPalette
@Composable() final static Unit PaintColorPalette(Modifier modifier, SketchbookController controller, List<Color> colorList, PaintColorPaletteTheme theme, Integer initialSelectedIndex, Function2<Integer, Color, Unit> onColorSelected, Function0<Unit> header, Function2<Integer, Color, Unit> content, Function0<Unit> footer)
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- SketchbookController to bind Sketchbook.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.
-
-
-
-