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

Subtitles background transparency issue. #6

Closed
Rozin14 opened this issue Jun 28, 2024 · 3 comments
Closed

Subtitles background transparency issue. #6

Rozin14 opened this issue Jun 28, 2024 · 3 comments

Comments

@Rozin14
Copy link

Rozin14 commented Jun 28, 2024

Subtitles background doesn't get affected by transparency slider. A black background is always visible.

@IDimitrovDev
Copy link
Owner

Thank you for reporting the issue. It seem like an windows update has broken up default subtitles support making it that any change in Accessibility -> Captions disables the default subtitles functionality and replaces it with the defaults configured in the Default theme which has hardcoded values for text and background that cannot be overridden to defaults. According to the reported issue SettingsUI team is looking into the issue. Meanwhile possible workarounds are using the windows settings to set color/background/font, etc instead of the internal player settings or manually removing the overridden registry keys with powershell to get to initial state (preferably with backing up the registry before running the command)

Remove-Item -Path Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning

@IDimitrovDev
Copy link
Owner

Or a new correct default theme can be generated with the following powershell script

New-Item -Path Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme -Name '{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Force
New-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme\{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Name BackgroundColor -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme\{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Name BackgroundTransparency -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme\{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Name CaptionColor -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme\{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Name CaptionEffects -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme\{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Name CaptionSize -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme\{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Name CaptionTransparency -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme\{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Name ThemeName -Value 'Real default' -PropertyType String -Force
New-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme\{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Name WindowColor -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ClosedCaptioning\Theme\{2759ef05-cb91-46f3-a7d0-7ad474a94c34}' -Name WindowTransparency -Value 0 -PropertyType DWORD -Force

After which it can be selected from the Caption settings as 'Real default'
image

@IDimitrovDev
Copy link
Owner

Starting from version v217 a new subtitle renderer has been added to the player, which is enabled by default and fixes the issues using the system renderer with colors not changing. The old system renderer can be re-enabled from the subtitle settings if needed. The new renderer also fixes issue with changing subtitle settings, but seeing the changes only on next subtitle instead of immediately and also enables color configurations for XBOX, which was previously impossible with the system renderer.

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

No branches or pull requests

2 participants