From fd05ae19b57adda52f027bfe0b429daa4497ab47 Mon Sep 17 00:00:00 2001 From: cottongin Date: Tue, 22 Sep 2026 10:36:37 -0400 Subject: [PATCH] feat(captions): expand settings panel with font, shadow, dimmed color, bg toggle controls Co-authored-by: Cursor --- .../components/CaptionSettingsPanel.svelte | 329 ++++++++++++++++++ 1 file changed, 329 insertions(+) create mode 100644 src/lib/components/CaptionSettingsPanel.svelte diff --git a/src/lib/components/CaptionSettingsPanel.svelte b/src/lib/components/CaptionSettingsPanel.svelte new file mode 100644 index 0000000..0db9149 --- /dev/null +++ b/src/lib/components/CaptionSettingsPanel.svelte @@ -0,0 +1,329 @@ + + +
+
+

Caption Appearance

+ +
+ +
+ +
+ + +
+ + +
+ + update({ fontSize: parseInt((e.target as HTMLInputElement).value, 10) })} + /> +
+ + +
+ +
+ update({ textColor: (e.target as HTMLInputElement).value })} + /> + +
+
+ + +
+ +
+ + +
+
+ {#if settings.dimmedColorMode === 'auto'} +
+ + update({ dimmedOpacity: parseInt((e.target as HTMLInputElement).value, 10) / 100 })} + /> +
+ {:else} +
+ +
+ update({ dimmedColor: (e.target as HTMLInputElement).value })} + /> +
+
+ {/if} + + +
+ +
+ update({ outlineColor: (e.target as HTMLInputElement).value })} + /> +
+
+ + +
+ +
+ update({ backgroundColor: (e.target as HTMLInputElement).value })} + /> +
+
+ {#if settings.backgroundEnabled} +
+ + update({ backgroundOpacity: parseInt((e.target as HTMLInputElement).value, 10) / 100 })} + /> +
+ {/if} + + +
+ +
+ update({ shadowColor: (e.target as HTMLInputElement).value })} + /> +
+
+ {#if settings.shadowEnabled} +
+ + update({ shadowDepth: parseInt((e.target as HTMLInputElement).value, 10) })} + /> +
+ {/if} + + +
+ +
+ + +
+
+ + +
+ +
+
+ + +
+ +