Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Sep 12, 2023
1 parent 62cbf70 commit 810e784
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
6 changes: 6 additions & 0 deletions taxonium_component/src/Deck.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ function Deck({
deckSettingsOpen={deckSettingsOpen}
setDeckSettingsOpen={setDeckSettingsOpen}
settings={settings}
noneColor={colorHook.toRGB("None")}
setNoneColor={(color) => {
setAdditionalColorMapping((x) => {
return { ...x, None: color };
});
}}
/>
<ColorSettingModal
isOpen={colorSettingOpen}
Expand Down
23 changes: 22 additions & 1 deletion taxonium_component/src/components/DeckSettingsModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const settingsModalStyle = {
borderRadius: "8px",
padding: "20px",
maxWidth: "700px",
maxHeight: "80vh",
},
overlay: {
backgroundColor: "rgba(100, 100, 100, 0.3)",
Expand All @@ -30,6 +31,8 @@ const DeckSettingsModal = ({
settings,
deckSettingsOpen,
setDeckSettingsOpen,
noneColor,
setNoneColor,
}) => {
return (
<Modal
Expand All @@ -40,11 +43,12 @@ const DeckSettingsModal = ({
>
<h2 className="font-medium mb-5 text-lg">Settings</h2>
<Tabs>
<TabList>
<TabList className="">
<Tab>Toggle</Tab>
<Tab>Appearance</Tab>
<Tab>Mutation Types</Tab>
<Tab>Search</Tab>
<Tab>Color</Tab>
</TabList>

<TabPanel>
Expand Down Expand Up @@ -222,6 +226,23 @@ const DeckSettingsModal = ({
</div>
</div>
</TabPanel>
<TabPanel>
<div className="space-y-3">
<h3 className="font-medium">Color</h3>
<div>
<label>
Default color for nodes:
<ColorPicker
color={noneColor}
setColor={setNoneColor}
/>
</label>
</div>
</div>
</TabPanel>



</Tabs>
</Modal>
);
Expand Down

0 comments on commit 810e784

Please sign in to comment.