mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
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:
parent
6399b1f318
commit
c6accd9fc7
4 changed files with 51 additions and 13 deletions
|
@ -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);
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue