diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-07-03 15:58:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 15:58:07 -0500 |
commit | 696bffe832c8ce748f2e4cc31e82764a6afb5b66 (patch) | |
tree | 1bcb67ea49bf66c9679aa369e9be3ea37b178f79 /src/view/screens/Settings.tsx | |
parent | bc55241c9ae731f633f8b93a9b7eac7635070148 (diff) | |
download | voidsky-696bffe832c8ce748f2e4cc31e82764a6afb5b66.tar.zst |
* Add alt text validation option to user preferences * Fix typos/linting issues * Update accessibility setting to match styles * Update the required alt text reminder to go away once it's added --------- Co-authored-by: Emma Fuller <emma@emmafuller.dev>
Diffstat (limited to 'src/view/screens/Settings.tsx')
-rw-r--r-- | src/view/screens/Settings.tsx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index e1fb549bc..0057841b2 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -330,6 +330,22 @@ export const SettingsScreen = withAuthRequired( </TouchableOpacity> <View style={styles.spacer20} /> + + <Text type="xl-bold" style={[pal.text, styles.heading]}> + Accessibility + </Text> + <View style={[pal.view, styles.toggleCard]}> + <ToggleButton + type="default-light" + label="Require alt text on images" + labelType="lg" + isSelected={store.preferences.requireAltTextEnabled} + onPress={store.preferences.toggleRequireAltTextEnabled} + /> + </View> + + <View style={styles.spacer20} /> + <Text type="xl-bold" style={[pal.text, styles.heading]}> Appearance </Text> @@ -633,6 +649,11 @@ const styles = StyleSheet.create({ paddingHorizontal: 18, marginBottom: 1, }, + toggleCard: { + paddingVertical: 8, + paddingHorizontal: 6, + marginBottom: 1, + }, avi: { marginRight: 12, }, |