Remove primary colour from colour options

This commit is contained in:
Mitchell McCaffrey 2021-07-18 09:42:07 +10:00
parent 1141dcf554
commit 4983ddbc17
4 changed files with 64 additions and 59 deletions

View File

@ -123,6 +123,7 @@ function DrawingToolSettings({
<ColorControl
color={settings.color}
onColorChange={(color) => onSettingChange({ color })}
exclude={["primary"]}
/>
<Divider vertical />
<ToolSection

View File

@ -18,7 +18,7 @@ function PointerToolSettings({
<ColorControl
color={settings.color}
onColorChange={(color) => onSettingChange({ color })}
exclude={["black", "darkGray", "lightGray", "white"]}
exclude={["black", "darkGray", "lightGray", "white", "primary"]}
/>
</Flex>
);

View File

@ -167,7 +167,9 @@ function NoteMenu({
justifyContent: "space-between",
}}
>
{colorOptions.map((color) => (
{colorOptions
.filter((color) => color !== "primary")
.map((color) => (
<Box
key={color}
sx={{

View File

@ -190,7 +190,9 @@ function TokenMenu({
justifyContent: "space-between",
}}
>
{colorOptions.map((color) => (
{colorOptions
.filter((color) => color !== "primary")
.map((color) => (
<Box
key={color}
sx={{