diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-24 16:36:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 16:36:05 -0500 |
commit | da8af38dcc23ea33c686714be2ce5f0bf0e65798 (patch) | |
tree | 78156a3b5803ccda6883e9e694ca79ccfdc40473 /src/view/screens/Settings.tsx | |
parent | 9d8600c21387999f8621274c553d5385be0c92c7 (diff) | |
download | voidsky-da8af38dcc23ea33c686714be2ce5f0bf0e65798.tar.zst |
Android & visual fixes: color themes, repost icon, navigation, back handler, etc (#519)
* Switch android to use slide left/right animations on navigation * Bump the repost icon down by a pixel * Tune theme colors for contrast and darker bg on darkmode * Move back handler to a point in the init flow that leads to more consistent capture of events * Fix image share flow on android * Fix lint * Add todo about sharing not available * Drop the android slide animation because it's too slow * Fix 'flashes of white' in dark mode android
Diffstat (limited to 'src/view/screens/Settings.tsx')
-rw-r--r-- | src/view/screens/Settings.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index 6cf83c391..89e2d78b4 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -35,6 +35,7 @@ import {AccountData} from 'state/models/session' import {useAnalytics} from 'lib/analytics' import {NavigationProp} from 'lib/routes/types' import {pluralize} from 'lib/strings/helpers' +import {isDesktopWeb} from 'platform/detection' type Props = NativeStackScreenProps<CommonNavigatorParams, 'Settings'> export const SettingsScreen = withAuthRequired( @@ -139,9 +140,12 @@ export const SettingsScreen = withAuthRequired( }, [store]) return ( - <View style={[s.hContentRegion]} testID="settingsScreen"> - <ViewHeader title="Settings" showOnDesktop /> - <ScrollView style={s.hContentRegion} scrollIndicatorInsets={{right: 1}}> + <View style={s.hContentRegion} testID="settingsScreen"> + <ViewHeader title="Settings" /> + <ScrollView + style={s.hContentRegion} + contentContainerStyle={!isDesktopWeb && pal.viewLight} + scrollIndicatorInsets={{right: 1}}> <View style={styles.spacer20} /> <View style={[s.flexRow, styles.heading]}> <Text type="xl-bold" style={pal.text}> |