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} + + +
+ +
+ + +
+
+ + +
+ +
+
+ + +
+ +