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

Don't flip playback control buttons in RTL layout #98222

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

timothyqiu
Copy link
Member

@timothyqiu timothyqiu commented Oct 16, 2024

I noticed that the direction Play buttons facing are inconsistent in the editor when using RTL layout. Some are facing left while some are facing right.

According to resources online, playback control symbols represent the direction of the tape being played, so they don't require any change in RTL layout.1

This PR makes all play icons facing right.

Before After
visual-profiler-before visual-profiler-after
run-export-before run-export-after

For AnimationPlayer and SpriteFrames playback controls, the icons are not flipped currently. This PR makes the order of these buttons the same as in LTR layout.

Before After
animation-player-before animation-player-after
sprite-frames-before sprite-frames-after
Play / Step / Stop / Step backward / Play backward Play backward / Step backward / Stop / Step / Play

Footnotes

  1. https://m2.material.io/design/usability/bidirectionality.html#mirroring-elements

@timothyqiu timothyqiu added this to the 4.4 milestone Oct 16, 2024
@timothyqiu timothyqiu requested review from a team as code owners October 16, 2024 08:51
@timothyqiu timothyqiu removed the request for review from a team October 16, 2024 08:54
@clayjohn clayjohn merged commit 1435247 into godotengine:master Oct 17, 2024
20 checks passed
@clayjohn
Copy link
Member

Thank you!

@timothyqiu timothyqiu deleted the media-control-rtl branch October 18, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants