Remove primary colour from colour options
This commit is contained in:
parent
1141dcf554
commit
4983ddbc17
@ -123,6 +123,7 @@ function DrawingToolSettings({
|
|||||||
<ColorControl
|
<ColorControl
|
||||||
color={settings.color}
|
color={settings.color}
|
||||||
onColorChange={(color) => onSettingChange({ color })}
|
onColorChange={(color) => onSettingChange({ color })}
|
||||||
|
exclude={["primary"]}
|
||||||
/>
|
/>
|
||||||
<Divider vertical />
|
<Divider vertical />
|
||||||
<ToolSection
|
<ToolSection
|
||||||
|
@ -18,7 +18,7 @@ function PointerToolSettings({
|
|||||||
<ColorControl
|
<ColorControl
|
||||||
color={settings.color}
|
color={settings.color}
|
||||||
onColorChange={(color) => onSettingChange({ color })}
|
onColorChange={(color) => onSettingChange({ color })}
|
||||||
exclude={["black", "darkGray", "lightGray", "white"]}
|
exclude={["black", "darkGray", "lightGray", "white", "primary"]}
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
|
@ -167,7 +167,9 @@ function NoteMenu({
|
|||||||
justifyContent: "space-between",
|
justifyContent: "space-between",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{colorOptions.map((color) => (
|
{colorOptions
|
||||||
|
.filter((color) => color !== "primary")
|
||||||
|
.map((color) => (
|
||||||
<Box
|
<Box
|
||||||
key={color}
|
key={color}
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -190,7 +190,9 @@ function TokenMenu({
|
|||||||
justifyContent: "space-between",
|
justifyContent: "space-between",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{colorOptions.map((color) => (
|
{colorOptions
|
||||||
|
.filter((color) => color !== "primary")
|
||||||
|
.map((color) => (
|
||||||
<Box
|
<Box
|
||||||
key={color}
|
key={color}
|
||||||
sx={{
|
sx={{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user