feat: add more subtitle style and fix some api erro handling - #1671
Draft
Ckrvxr wants to merge 42 commits into
Draft
feat: add more subtitle style and fix some api erro handling#1671Ckrvxr wants to merge 42 commits into
Ckrvxr wants to merge 42 commits into
Conversation
…Color/Shadow/Outline
- Split DEFAULT_TEXT_STYLE into main (fontScale 80) and translation (100) - Fix Blur background opacity: remove *0.3 clamp, map 0-100 directly - Fix Liquid Glass background: wire up opacity slider instead of hardcoded 0.08 - Unified preset labels with Background Style options (Glass→Blur, Liquid→Liquid Glass) - Update preset default opacities: Glass 35, Liquid/Advanced 100 - Change DEFAULT_BACKGROUND_STYLE from none to blur - Change DEFAULT_PRESET_STYLE from Advanced (4) to Blur (2) - Change DEFAULT_LINE_GAP 2→4, DEFAULT_FONT_STROKE_WIDTH 2.5→3 - Fix reset handlers: add missing presetStyle/backgroundForceMerge, use correct defaults - Remove SubtitleMode type and basic/advanced toggle (merged into presetStyle) - Add Advanced preset snapshot for preserving custom values on mode switch
…shouldMerge threshold - Export ADVANCED_INDEX from constants/subtitles, import in all consumers - Save Advanced snapshot before reset in both style.tsx and general-settings.tsx - Change shouldMerge threshold from lineGap <= 3 to lineGap <= 4
- Add presetStyle, backgroundStyle, lineGap, backgroundForceMerge to 8 locale files - Rename en.yml presetStyle from Style to Preset - Fix hardcoded 'Background Style' labels to use i18n key in style.tsx and general-settings.tsx - Rename resetGeneralConfig to handleResetGeneral in general-settings.tsx
- Add presetStyle, backgroundForceMerge, lineGap to subtitle style - Set backgroundStyle based on backgroundOpacity (0→none, otherwise→blur) - Update shadow/stroke defaults to 3 for main and translation - Add v076.ts example file and v075-to-v076.test.ts
- Replace async vi.mock factory with sync atoms at module scope - Add missing @vitest-environment jsdom directive - Add ResizeObserver mock for jsdom compatibility
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
已经把简易和高级模式分开写了。现在就比较清新。
Pixpin.2026-06-10.22-03-32.mp4