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) =>
+
,
+ )}
+
+
+
+
-
-
- {t('color.colors@@Colors')}
+
+ idk where to put these buttons yet
{
@@ -190,62 +245,28 @@ export default component$(() => {
]} value={Object.keys(presets).find((preset: any) => presets[preset as keyof typeof presets].toString() == store.colors.toString()) ?? 'custom'}>
{t('color.colorPreset@@Color Preset')}
- {
- store.length++;
- }}
- onDecrement$={() => {
- if (store.length > 1) store.length--;
- }}
- >
- {t('animtab.length@@Gradient Length')}
-
- {
- if (event.target!.value < 2) event.target!.value = 2;
- const newColors = [];
- for (let i = 0; i < event.target!.value; i++) {
- if (store.colors[i]) newColors.push(store.colors[i]);
- else newColors.push(getRandomColor());
- }
- store.colors = newColors;
- }}
- onIncrement$={() => {
- const newColors = [...store.colors, getRandomColor()];
- store.colors = newColors;
- }}
- onDecrement$={() => {
- const newColors = [...store.colors];
- newColors.pop();
- store.colors = newColors;
- }}
- >
- {t('color.colorAmount@@Color Amount')}
-
{store.colors.map((color: string, i: number) => {
return
-
{
+ 126 ? 'black' : 'white',
+ }}>
+
;
})}