diff --git a/src/app.scss b/src/app.scss
index 9be7a0e..4b88d03 100644
--- a/src/app.scss
+++ b/src/app.scss
@@ -224,7 +224,8 @@ body {
background-size: 100vw 100vh;
}
-::selection, ::-moz-selection {
+::selection,
+::-moz-selection {
@apply bg-accent-blue text-on-accent;
}
@@ -278,7 +279,8 @@ body {
@apply text-accent underline;
}
- input[type="text"] {
+ input[type="text"],
+ select.dropdown {
@apply w-full p-3 rounded-lg bg-panel border-2 border-button pl-3 pr-[4rem];
}
@@ -286,7 +288,7 @@ body {
@apply text-muted font-normal;
}
- input[type=text]:focus {
+ input[type="text"]:focus {
@apply outline outline-accent outline-2;
}
}
diff --git a/src/lib/components/functional/Dropdown.svelte b/src/lib/components/functional/Dropdown.svelte
index fb44811..d7f064c 100644
--- a/src/lib/components/functional/Dropdown.svelte
+++ b/src/lib/components/functional/Dropdown.svelte
@@ -9,6 +9,7 @@
selected?: string;
onselect?: (option: string) => void;
disabled?: boolean;
+ settingsStyle?: boolean;
};
let {
@@ -16,6 +17,7 @@
selected = $bindable(options[0]),
onselect,
disabled,
+ settingsStyle,
}: Props = $props();
let open = $state(false);
@@ -49,13 +51,21 @@
+
+
+
Conversion speed
+
+ This describes the tradeoff between speed and
+ quality. Faster speeds will result in lower quality,
+ but will get the job done quicker.
+
+
+
+
{
+ switch (selected) {
+ case "Very Slow":
+ settings.settings.vertdSpeed = "verySlow";
+ break;
+ case "Slower":
+ settings.settings.vertdSpeed = "slower";
+ break;
+ case "Slow":
+ settings.settings.vertdSpeed = "slow";
+ break;
+ case "Medium":
+ settings.settings.vertdSpeed = "medium";
+ break;
+ case "Fast":
+ settings.settings.vertdSpeed = "fast";
+ break;
+ case "Ultra Fast":
+ settings.settings.vertdSpeed = "ultraFast";
+ break;
+ }
+ }}
+ />
+
diff --git a/src/lib/sections/settings/index.svelte.ts b/src/lib/sections/settings/index.svelte.ts
index 7df8e4e..b4e3c55 100644
--- a/src/lib/sections/settings/index.svelte.ts
+++ b/src/lib/sections/settings/index.svelte.ts
@@ -1,3 +1,5 @@
+import type { ConversionSpeed } from "$lib/converters/vertd.svelte";
+
export { default as Appearance } from "./Appearance.svelte";
export { default as Conversion } from "./Conversion.svelte";
export { default as Vertd } from "./Vertd.svelte";
@@ -5,6 +7,7 @@ export { default as Vertd } from "./Vertd.svelte";
export interface ISettings {
filenameFormat: string;
vertdURL: string;
+ vertdSpeed: ConversionSpeed;
}
export class Settings {
@@ -13,6 +16,7 @@ export class Settings {
public settings: ISettings = $state({
filenameFormat: "VERT_%name%",
vertdURL: "",
+ vertdSpeed: "slow",
});
public save() {