The next-generation file converter. Open source, fully local* and free forever.
fix: effects setting & ui fixes
JovannMC045a9d5380f6
diff --git a/src/lib/components/functional/FancyInput.svelte b/src/lib/components/functional/FancyInput.svelteindex ffdcf5c..ec49b0a 100644--- a/src/lib/components/functional/FancyInput.svelte+++ b/src/lib/components/functional/FancyInput.svelte@@ -1,4 +1,7 @@<script lang="ts">+ import { effects } from "$lib/store/index.svelte";+ import clsx from "clsx";+interface Props {class?: string;value?: string | number;@@ -16,7 +19,6 @@let {class: className,inputClass,- bgColor = "bg-panel",value = $bindable(),checked = $bindable(),type = "text",@@ -36,12 +38,14 @@type="checkbox"bind:checked{disabled}- class="w-full p-3 rounded-lg border-2 border-button- {bgColor}- {prefix ? 'pl-[2rem]' : 'pl-3'}- {extension ? 'pr-[4rem]' : 'pr-3'}- {disabled && 'opacity-50 cursor-not-allowed'} appearance-none- {inputClass}"+ class={clsx(+ "bg-panel w-full p-3 rounded-lg border-2 border-button appearance-none",+ prefix ? "pl-[2rem]" : "pl-3",+ extension ? "pr-[4rem]" : "pr-3",+ disabled && "opacity-50 cursor-not-allowed",+ inputClass,+ $effects && "transition-colors duration-200",+ )}/>{#if checked}<divdiff --git a/src/lib/components/functional/popups/SettingsModal.svelte b/src/lib/components/functional/popups/SettingsModal.svelteindex 8635a58..8ac8838 100644--- a/src/lib/components/functional/popups/SettingsModal.svelte+++ b/src/lib/components/functional/popups/SettingsModal.svelte@@ -6,7 +6,7 @@import Modal from "./Modal.svelte";import { m } from "$lib/paraglide/messages";import type { VertFile } from "$lib/types";- import { files } from "$lib/store/index.svelte";+ import { effects, files } from "$lib/store/index.svelte";import { converterCategories } from "$lib/converters";import { log, error } from "$lib/util/logger";import type {@@ -274,7 +274,6 @@onselect={(value) => {selectedFileName = value;settings = {};- activeTab = "Converter";}}/></div>@@ -306,11 +305,11 @@{#each availableConverters as converter}<buttonclass={clsx(- "transition w-full p-3 text-left rounded-xl border border-separator",+ "w-full p-3 text-left rounded-xl border-2 border-button",converter.name ===- validConverter?.name- ? "bg-accent-purple text-black"- : "hover:bg-panel",+ validConverter?.name &&+ "bg-accent-purple text-black",+ $effects && "transition",)}onclick={() => {settings.converter = converter.name;diff --git a/src/lib/css/app.scss b/src/lib/css/app.scssindex fb1b95a..8947ae1 100644--- a/src/lib/css/app.scss+++ b/src/lib/css/app.scss@@ -403,8 +403,8 @@ body {}input[type="checkbox"] {- @apply appearance-none w-5 h-5 rounded-md border-2 border-button cursor-pointer transition-colors duration-200;- outline-offset: -2px;;+ @apply appearance-none w-5 h-5 rounded-md border-2 border-button cursor-pointer;+ outline-offset: -2px;}input[type="checkbox"]:hover {diff --git a/src/lib/util/animation.ts b/src/lib/util/animation.tsindex d7f1fce..27773dc 100644--- a/src/lib/util/animation.ts+++ b/src/lib/util/animation.ts@@ -34,6 +34,7 @@ export function animateHeight(node: HTMLElement,options: HeightTransitionOptions = {},) {+ if (!effectsEnabled) return {};let transitionDuration = options.duration ?? duration;let easing = options.easing ?? transition;let observedChild: Element | null = null;