feat: add optional subtitle style editor with live preview
This commit is contained in:
@@ -7,6 +7,22 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [3.1.0] - 2026-02-13
|
||||
|
||||
### Added
|
||||
|
||||
- Added optional subtitle style editor via `subtitleStyleEditor` prop (`boolean | SubtitleStyleEditorConfig`).
|
||||
- Added in-player subtitle style controls under `Settings > Subtitles` with real-time preview (font size, font weight, text/background colors, background opacity).
|
||||
- Added explicit `Save`, `Cancel`, and `Reset` actions for subtitle style editing.
|
||||
- Added subtitle style persistence to `localStorage` (saved only on `Save`) with configurable storage key.
|
||||
- Added new i18n keys for subtitle style editor UI in English and Turkish.
|
||||
|
||||
### Changed
|
||||
|
||||
- Updated player context settings to include runtime subtitle style state (`setSubtitleStyle`, `saveSubtitleStyle`, `revertSubtitleStyle`).
|
||||
- Updated subtitle renderer to use context-managed effective subtitle style, enabling live preview updates from settings.
|
||||
- Updated example app with a feature toggle for subtitle style editor and demo persistence key.
|
||||
|
||||
## [3.0.1] - 2026-02-13
|
||||
|
||||
### Changed
|
||||
|
||||
Reference in New Issue
Block a user