From 648df78aad611b8b77e2d7cdbe3423fd25093649 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Wed, 30 Apr 2025 20:55:53 -0600 Subject: [PATCH] Add setting to make captions lower --- src/assets/locales/en.json | 5 +- .../atoms/settings/CaptionSettingsView.tsx | 41 ++++++++++++++++ src/components/player/base/SubtitleView.tsx | 12 +++-- src/pages/parts/settings/CaptionsPart.tsx | 49 ++++++++++++++++++- src/stores/subtitles/index.ts | 12 +++++ 5 files changed, 112 insertions(+), 7 deletions(-) diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 88373318..df617411 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -766,7 +766,10 @@ "previewQuote": "Convinced life is meaningless, I lack the courage of my conviction.", "textSizeLabel": "Text size", "title": "Subtitles", - "textBoldLabel": "Bold text" + "textBoldLabel": "Bold text", + "verticalPositionLabel": "Vertical position", + "default": "Default", + "low": "Low" }, "unsaved": "You have unsaved changes... ฅ^•ﻌ•^ฅ" }, diff --git a/src/components/player/atoms/settings/CaptionSettingsView.tsx b/src/components/player/atoms/settings/CaptionSettingsView.tsx index d953fbf0..ab4b5d05 100644 --- a/src/components/player/atoms/settings/CaptionSettingsView.tsx +++ b/src/components/player/atoms/settings/CaptionSettingsView.tsx @@ -325,6 +325,47 @@ export function CaptionSettingsView({ onChange={(v) => handleStylingChange({ ...styling, size: v / 100 })} value={styling.size * 100} /> +