Skip to content

Add scale to the ASS subtitles override level slider #5050

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

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

low-batt
Copy link
Contributor

@low-batt low-batt commented Jul 6, 2024

This commit will:

  • Add a new scale enum constant to SubOverrideLevel in Preferences
  • Add translations for scale in base and English Localizable.strings
  • Lengthen the override level slider and add an additional tick mark for scale
  • Add a ASSOverrideLevelValueTransformer class to PrefSubViewController
  • Change the override level slider to use the transformer when accessing the subOverrideLevel setting

This adds the missing scale value from IINA's Override level setting found in the ASS Subtitles section on the Subtitle tab of IINA's settings. To preserve backward compatibility with enum values stored in user's settings scale was added to the end of the enumeration. This means the enum raw values do not reflect the correct order needed for the slider. The transformer adjusts the values to provide a proper ordering for the slider.


Description:

This commit will:
- Add a new scale enum constant to SubOverrideLevel in Preferences
- Add translations for scale in base and English Localizable.strings
- Lengthen the override level slider and add an additional tick mark
  for scale
- Add a ASSOverrideLevelValueTransformer class to PrefSubViewController
- Change the override level slider to use the transformer when accessing
  the subOverrideLevel setting

This adds the missing scale value from IINA's Override level setting
found in the ASS Subtitles section on the Subtitle tab of IINA's
settings. To preserve backward compatibility with enum values stored in
user's settings scale was added to the end of the enumeration. This
means the enum raw values do not reflect the correct order needed for
the slider. The transformer adjusts the values to provide a proper
ordering for the slider.
@low-batt low-batt requested review from uiryuu and lhc70000 July 6, 2024 22:14
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

@uiryuu uiryuu linked an issue Jul 8, 2024 that may be closed by this pull request
@uiryuu uiryuu merged commit 48aae7e into develop Jul 8, 2024
1 check passed
@uiryuu uiryuu deleted the override-scale branch July 8, 2024 03:31
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