+
- -
- {#if palPresent && $configStore.route === "examples"} - - {:else if palPresent && $configStore.route === "compare"} - - {:else if palPresent && $configStore.route === "eval"} - - {:else if $configStore.route === "manage"}{/if} +
+ +
+ {#if palPresent && $configStore.route === "examples"} + + {:else if palPresent && $configStore.route === "compare"} + + {:else if palPresent && $configStore.route === "eval"} + + {/if} +
diff --git a/apps/color-buddy/src/components/About.svelte b/apps/color-buddy/src/components/About.svelte index de7d0ae6..581d1143 100644 --- a/apps/color-buddy/src/components/About.svelte +++ b/apps/color-buddy/src/components/About.svelte @@ -1,8 +1,16 @@ -
+
+ +
+ +
{#if currentOptions.length > 0}
diff --git a/apps/color-buddy/src/components/ColorButton.svelte b/apps/color-buddy/src/components/ColorButton.svelte index 218ba9f5..8716a105 100644 --- a/apps/color-buddy/src/components/ColorButton.svelte +++ b/apps/color-buddy/src/components/ColorButton.svelte @@ -6,7 +6,7 @@
+ + {#if stats[idx]} +
+
dE: {Math.round(stats[idx])}
+
+ {/if} + {/each} +
+ + + +
- -
-
- -
-
-
-
- {#if $configStore.leftRoute === "controls" && currentPal} - - {/if} - {#if $configStore.leftRoute === "colors" && currentPal} - - {/if}
diff --git a/apps/color-buddy/src/content-modules/MainColumn.svelte b/apps/color-buddy/src/content-modules/MainColumn.svelte index d0d45b85..3c71396c 100644 --- a/apps/color-buddy/src/content-modules/MainColumn.svelte +++ b/apps/color-buddy/src/content-modules/MainColumn.svelte @@ -13,40 +13,13 @@ import SetColorSpace from "../controls/SetColorSpace.svelte"; import { cvdSim } from "color-buddy-palette"; - import ContentEditable from "../components/ContentEditable.svelte"; - export let scatterSize = 450; $: currentPal = $colorStore.palettes[$colorStore.currentPal]; $: selectedCVDType = $configStore.colorSim; -
- -
-
- Current: -
- colorStore.setCurrentPalName(x)} - value={currentPal.name} - useEditButton={true} - /> -
-
- -
- -
- {#if currentPal.tags.length} - Tags: - {#each currentPal.tags as tag} -
{tag}
- {/each} - {:else} -
 
- {/if} -
+
+
@@ -90,28 +64,7 @@ : currentPal.colors.map((x) => cvdSim(selectedCVDType, x))} /> - -
- - - -
-
Add Color
-
-
+
{ @@ -87,6 +84,16 @@ }} /> {/each} + {#if interpretations.length > 0} + + {/if}
{/if} -
+
diff --git a/apps/color-buddy/src/controls/Config.svelte b/apps/color-buddy/src/controls/Config.svelte index 697c277a..b0eeaaa6 100644 --- a/apps/color-buddy/src/controls/Config.svelte +++ b/apps/color-buddy/src/controls/Config.svelte @@ -81,7 +81,7 @@ >[0][]; - + diff --git a/apps/color-buddy/src/controls/DeMetric.svelte b/apps/color-buddy/src/controls/DeMetric.svelte new file mode 100644 index 00000000..fbfbbc49 --- /dev/null +++ b/apps/color-buddy/src/controls/DeMetric.svelte @@ -0,0 +1,31 @@ + + + + +
+ {#each metrics as metric} + + {/each} +
+
diff --git a/apps/color-buddy/src/controls/GetColorsFromString.svelte b/apps/color-buddy/src/controls/GetColorsFromString.svelte index f2dd539b..33ebc37a 100644 --- a/apps/color-buddy/src/controls/GetColorsFromString.svelte +++ b/apps/color-buddy/src/controls/GetColorsFromString.svelte @@ -2,6 +2,8 @@ import { Color } from "color-buddy-palette"; import configStore from "../stores/config-store"; import { processBodyTextToColors } from "../lib/utils"; + import Tooltip from "../components/Tooltip.svelte"; + import Export from "virtual:icons/fa6-solid/file-export"; let state: "idle" | "error" = "idle"; export let onChange: (colors: Color[]) => void; @@ -32,40 +34,50 @@ $: includeQuotes = $configStore.includeQuotes; -
-
+ +
-
- - configStore.setIncludeQuotes(!includeQuotes)} - /> +
+
+ + configStore.setIncludeQuotes(!includeQuotes)} + /> +
+ {#if state === "error"} +
Error parsing colors. {errorMsg}
+ {/if} +