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

Fix sub ass style overrides always applied, #4927 #4928

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

low-batt
Copy link
Contributor

This commit will:

  • Change the subOverrideHandler Transformer in MPVController.mpvInit to return no when Ignore ASS styles is disabled
  • Change PrefSubViewController.xib to only enable the Override level slider when Ignore ASS styles is enabled
  • Add 20 to the horizontal location of the Override level label to indent this setting under the Ignore ASS styles setting

This changes IINA to set the mpv option sub-ass-override to no when the setting for overriding styles in Advanced Substation Alpha subtitles is not enabled. This commit also indents the Override level setting to indicate it is a subordinate option and disables the slider if Ignore ASS styles is not enabled.


Description:

This commit will:
- Change the subOverrideHandler Transformer in MPVController.mpvInit to
  return "no" when "Ignore ASS styles" is disabled
- Change PrefSubViewController.xib to only enable the "Override level"
  slider when "Ignore ASS styles" is enabled
- Add 20 to the horizontal location of the "Override level" label to
  indent this setting under the "Ignore ASS styles" setting

This changes IINA to set the mpv option "sub-ass-override" to "no" when
the setting for overriding styles in Advanced Substation Alpha subtitles
is not enabled. This commit also indents the "Override level" setting to
indicate it is a subordinate option and disables the slider if
"Ignore ASS styles" is not enabled.
@low-batt low-batt linked an issue May 11, 2024 that may be closed by this pull request
1 task
Copy link
Member

@uiryuu uiryuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@low-batt
Copy link
Contributor Author

Based on the concerns expressed in this issue comment about the change in behavior this fix causes I am changing this to be a draft. Looking like to fix this requires significantly more changes.

@low-batt low-batt marked this pull request as draft May 25, 2024 19:16
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.

Sub ass style overrides always applied
2 participants