Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improve customization for subtitles #508

Merged
merged 4 commits into from
Nov 19, 2023

Conversation

SecurityCze
Copy link
Contributor

Improves support for subtitle customization.
Creates new subtitle specific settings that enable: separate font and border color, background color and transparency.

Specifically modifies "subtitles" section of settings:

  • placement - unchanged
  • color - now sets only font color
  • border_color - sets color of font border (previously hard coded to black)
  • background_color - sets color of subtitle background box
  • background_transparency - sets transparency of subtitle background box

I have replaced previous color "subtitles.blackWhite" with separate "subtitles.white" and "subtitles.black" colors - the name no longer made sense. Rest of the colors were reused.
I have also included transparency "subtitles.0%" (0%, 25%, 50%, 75% and 100%)
Not sure about proper translations/mapping of settings text - let me know if more needs to be done.

The change to "color" settings is a breaking change. It will fallback to MPV default (white text with black border) until users set their new preferences.
However I think it is worth it. It would allow more customization in the future.

It is a start to fixing #284 The feature parity is not 100%. If it looks good I can add more features in the future.

@iwalton3 iwalton3 merged commit e557757 into jellyfin:master Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants