Repository navigation
Match the Appearance screen's Dark Mode section to iOS - #2279
Draft
mpretty-cyro wants to merge 2 commits into
Draft
mpretty-cyro wants to merge 2 commits into
mpretty-cyro wants to merge 2 commits into
Conversation
The section header read "Auto Dark Mode" and its only row was the sentence "Follow system settings." set as a bold title. The header is now "Dark Mode", and the row has the title "Auto Dark Mode" with "Follow system settings." as its subtitle, styled like the Compose switch rows (16sp bold over 12sp).
TalkBack read the label and the switch as separate items, and only the switch itself responded to a tap. The row now toggles the setting when tapped, as on iOS and in the Compose switch rows, and TalkBack reads it as a single switch: "On, Auto Dark Mode, Follow system settings., Switch".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributor checklist
playflavour,debugFixes #1234syntaxDescription
The Dark Mode section on the Appearance screen didn't match iOS. Its header read "Auto Dark Mode", and its only row was the sentence "Follow system settings." set as a bold title. It now matches iOS:
darkMode);appearanceAutoDarkMode) with "Follow system settings." (followSystemSettings) as its subtitle.All three strings already existed and are translated, so no strings are added. The row copies the styles of the Compose switch rows (
SwitchActionRowItem): a 16sp bold title over a 12sp subtitle, both in the primary text colour, 2dp apart. The title's style is the same as the old row's.The second commit makes the row act as one switch:
uiautomatortree.AppearanceSettingsViewModelare unchanged.Confidence: high. It's a layout change plus an accessibility delegate on one row.
Testing: on an emulator, before and after, in Classic Dark, Classic Light, Arabic (RTL), German, and at 1.5× and 2× font size. At the large sizes the subtitle wraps cleanly beside the switch. I also checked:
Toggling the setting recreates the activity, as it already did, so TalkBack focus moves away after a toggle.