From 0ed041fe931d7042f06ea6bc905f822255d30fbf Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Fri, 7 Nov 2025 15:39:33 -0700 Subject: [PATCH] update subtitle defaults --- src/assets/locales/en.json | 4 +- .../atoms/settings/CaptionSettingsView.tsx | 43 ++++++++++--------- src/pages/parts/settings/CaptionsPart.tsx | 36 ++++++++-------- src/stores/subtitles/index.ts | 4 +- 4 files changed, 45 insertions(+), 42 deletions(-) diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 7943a048..5ba257bc 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -1159,8 +1159,8 @@ "title": "Subtitles", "textBoldLabel": "Bold text", "verticalPositionLabel": "Vertical position", - "default": "Default", - "low": "Low", + "high": "High", + "low": "Default", "textStyle": { "title": "Text style", "default": "Default", diff --git a/src/components/player/atoms/settings/CaptionSettingsView.tsx b/src/components/player/atoms/settings/CaptionSettingsView.tsx index 954e7ddc..20ad2e59 100644 --- a/src/components/player/atoms/settings/CaptionSettingsView.tsx +++ b/src/components/player/atoms/settings/CaptionSettingsView.tsx @@ -12,6 +12,7 @@ import { useProgressBar } from "@/hooks/useProgressBar"; import { usePlayerStore } from "@/stores/player/store"; import { usePreferencesStore } from "@/stores/preferences"; import { SubtitleStyling, useSubtitleStore } from "@/stores/subtitles"; +import { isFirefox } from "@/utils/detectFeatures"; export function ColorOption(props: { color: string; @@ -423,10 +424,12 @@ export function CaptionSettingsView({ const resetSubStyling = () => { subtitleStore.updateStyling({ color: "#ffffff", - backgroundOpacity: 0.5, - size: 1, - backgroundBlur: 0.5, + backgroundOpacity: 0.25, + size: 0.75, + backgroundBlur: 0.25, + backgroundBlurEnabled: !isFirefox, bold: false, + verticalPosition: 1, fontStyle: "default", borderThickness: 1, }); @@ -635,23 +638,6 @@ export function CaptionSettingsView({ {t("settings.subtitles.verticalPositionLabel")}