diff --git a/src/frontend/src/features/subtitle/component/CaptionsSettings.tsx b/src/frontend/src/features/subtitle/component/CaptionsSettings.tsx index 9f7ddefa..d0573dbe 100644 --- a/src/frontend/src/features/subtitle/component/CaptionsSettings.tsx +++ b/src/frontend/src/features/subtitle/component/CaptionsSettings.tsx @@ -6,7 +6,11 @@ import { useSnapshot } from 'valtio' import { accessibilityStore, type CaptionTextSize, + type CaptionFontColor, + type CaptionBackgroundColor, CAPTION_TEXT_SIZE_OPTIONS, + CAPTION_FONT_COLOR_OPTIONS, + CAPTION_BACKGROUND_COLOR_OPTIONS, } from '@/stores/accessibility' export const CaptionsSettings = () => { @@ -24,6 +28,24 @@ export const CaptionsSettings = () => { [t] ) + const captionFontColorItems = useMemo( + () => + CAPTION_FONT_COLOR_OPTIONS.map((color) => ({ + value: color, + label: t(`fontColor.options.${color}`), + })), + [t] + ) + + const captionBackgroundColorItems = useMemo( + () => + CAPTION_BACKGROUND_COLOR_OPTIONS.map((color) => ({ + value: color, + label: t(`backgroundColor.options.${color}`), + })), + [t] + ) + return (