Improve color suggestions (#304)

* Add palettes for each type of color picker.

* Add white canvas background and black element stroke.

* Add white for element background.
This commit is contained in:
Enzo Ferey 2020-01-11 23:58:44 +01:00 committed by Christopher Chedeau
parent 6399b1f318
commit c6accd9fc7
4 changed files with 51 additions and 13 deletions

View file

@ -32,6 +32,7 @@ export const actionChangeStrokeColor: Action = {
PanelComponent: ({ elements, appState, updateData }) => (
<PanelColor
title="Stroke Color"
colorType="elementStroke"
onColorChange={(color: string) => {
updateData(color);
}}
@ -57,6 +58,7 @@ export const actionChangeBackgroundColor: Action = {
PanelComponent: ({ elements, updateData }) => (
<PanelColor
title="Background Color"
colorType="elementBackground"
onColorChange={(color: string) => {
updateData(color);
}}