diff --git a/src/routes/resources/animtab/index.tsx b/src/routes/resources/animtab/index.tsx index 5f3c5b93..6bf6e52f 100644 --- a/src/routes/resources/animtab/index.tsx +++ b/src/routes/resources/animtab/index.tsx @@ -2,11 +2,11 @@ import { $, component$, useStore, useTask$, useVisibleTask$ } from '@builder.io/ import { routeLoader$, type DocumentHead } from '@builder.io/qwik-city'; import { defaults, loadPreset, presets, types, v3formats } from '~/components/util/PresetUtils'; -import { AnimationOutput, getAnimFrames, getRandomColor } from '~/components/util/RGBUtils'; +import { AnimationOutput, convertToRGB, getAnimFrames, getBrightness, getRandomColor } from '~/components/util/RGBUtils'; -import { ChevronDown, ChevronUp, ColorFillOutline, SettingsOutline, Text } from 'qwik-ionicons'; +import { Add, ChevronDown, ChevronUp, ColorFillOutline, Remove, SettingsOutline, Text, TrashOutline } from 'qwik-ionicons'; -import { Button, ColorInput, Header, NumberInput, Dropdown, TextArea, TextInput, Toggle } from '@luminescent/ui'; +import { Button, Header, NumberInput, Dropdown, TextArea, TextInput, Toggle, ColorPicker } from '@luminescent/ui'; import { inlineTranslate, useSpeak } from 'qwik-speak'; import { getCookies, setCookies } from '~/components/util/SharedUtils'; import { isBrowser } from '@builder.io/qwik/build'; @@ -46,6 +46,7 @@ export default component$(() => { ...animTABDefaults, ...unsupportedDefaults, ...cookies, + opened: -1, alerts: [] as { class: string, text: string, @@ -173,11 +174,65 @@ export default component$(() => { +
+ +
+ {store.colors.map((color: string, i: number) =>
+
, + )} +
+ +
+