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 incorrect directionality in RTL OSD. #4884 #4886

Merged
merged 1 commit into from May 25, 2024
Merged

Fix incorrect directionality in RTL OSD. #4884 #4886

merged 1 commit into from May 25, 2024

Conversation

low-batt
Copy link
Contributor

This commit will:

  • Add withPosition and withLeftToRightText message types to OSDMessage
  • Change the seek message type in OSDMessage to use withPosition instead of withProgress
  • Change the abLoop, abLoopUpdate, chapter, pause and resume message types in OSDMessage to use withLeftToRightText instead of withText
  • Add support for withPosition to MainWindowController.displayOSD that uses a left to right layout for the text and slider
  • Add support for withLeftToRightText to MainWindowController.displayOSD that uses a left to right layout for the text

This adjusts IINA's behavior to match Apple's guidance that timeline indicators should not flip in a right-to-left language. The updated OSD messages all reference positions within the video.


Description:

This commit will:
- Add withPosition and withLeftToRightText message types to OSDMessage
- Change the seek message type in OSDMessage to use withPosition instead
  of withProgress
- Change the abLoop, abLoopUpdate, chapter, pause and  resume message
  types in OSDMessage to use withLeftToRightText instead of withText
- Add support for withPosition to MainWindowController.displayOSD that
  uses a left to right layout for the text and slider
- Add support for withLeftToRightText to MainWindowController.displayOSD
  that uses a left to right layout for the text

This adjusts IINA's behavior to match Apple's guidance that timeline
indicators should not flip in a right-to-left language. The updated OSD
messages all reference positions within the video.
@low-batt low-batt linked an issue Apr 20, 2024 that may be closed by this pull request
@ShlomoCode
Copy link

I'm used to messages (toasts) appearing at the "end" of the screen, meaning in English it's usually on the right side. It's like that in macos notifications, in English it's on the right side and in Hebrew it's on the left side.
But iina is the opposite of normal in English... why?

@uiryuu uiryuu changed the base branch from develop to enable-he May 25, 2024 01:04
@uiryuu uiryuu merged commit 5b354e7 into enable-he May 25, 2024
1 check passed
@uiryuu uiryuu deleted the he-osd branch May 25, 2024 01:04
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.

Incorrect directionality in RTL OSD
3 participants