Merge pull request #514 from bluesky-social/ollie/ap-dark-mode

Fix App Passwords iOS dark mode modal
zio/stable
Ollie Hsieh 2023-04-22 06:22:08 -07:00 committed by GitHub
commit eb6b36be61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 6 deletions

View File

@ -90,14 +90,16 @@ export function Component({}: {}) {
<View style={[styles.container, pal.view]} testID="addAppPasswordsModal"> <View style={[styles.container, pal.view]} testID="addAppPasswordsModal">
<View> <View>
{!appPassword ? ( {!appPassword ? (
<Text type="lg"> <Text type="lg" style={[pal.text]}>
Please enter a unique name for this App Password. We have generated Please enter a unique name for this App Password. We have generated
a random name for you. a random name for you.
</Text> </Text>
) : ( ) : (
<Text type="lg"> <Text type="lg" style={[pal.text]}>
<Text type="lg-bold">Here is your app password.</Text> Use this to <Text type="lg-bold" style={[pal.text]}>
sign into the other app along with your handle. Here is your app password.
</Text>{' '}
Use this to sign into the other app along with your handle.
</Text> </Text>
)} )}
{!appPassword ? ( {!appPassword ? (
@ -126,7 +128,9 @@ export function Component({}: {}) {
<TouchableOpacity <TouchableOpacity
style={[pal.border, styles.passwordContainer, pal.btn]} style={[pal.border, styles.passwordContainer, pal.btn]}
onPress={onCopy}> onPress={onCopy}>
<Text type="2xl-bold">{appPassword}</Text> <Text type="2xl-bold" style={[pal.text]}>
{appPassword}
</Text>
{wasCopied ? ( {wasCopied ? (
<Text style={[pal.textLight]}>Copied</Text> <Text style={[pal.textLight]}>Copied</Text>
) : ( ) : (
@ -162,7 +166,7 @@ const styles = StyleSheet.create({
container: { container: {
flex: 1, flex: 1,
paddingBottom: isDesktopWeb ? 0 : 50, paddingBottom: isDesktopWeb ? 0 : 50,
marginHorizontal: 16, paddingHorizontal: 16,
}, },
textInputWrapper: { textInputWrapper: {
borderRadius: 8, borderRadius: 8,