Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update modal background color (#1129)

Leendert de Borst87a62000d36d
diff --git a/apps/mobile-app/components/form/EmailDomainField.tsx b/apps/mobile-app/components/form/EmailDomainField.tsx
index c1bcff93a..10b3e1b9a 100644
--- a/apps/mobile-app/components/form/EmailDomainField.tsx
+++ b/apps/mobile-app/components/form/EmailDomainField.tsx
@@ -151,8 +151,6 @@ export const EmailDomainField: React.FC<EmailDomainFieldProps> = ({
}
}, [isCustomDomain, value, localPart, showPrivateDomains, privateEmailDomains, onChange]);
- const modalBackgroundColor = 'rgba(0, 0, 0, 0.5)';
-
const styles = StyleSheet.create({
container: {
marginBottom: 16,
@@ -262,7 +260,7 @@ export const EmailDomainField: React.FC<EmailDomainFieldProps> = ({
paddingVertical: 12,
},
modalOverlay: {
- backgroundColor: modalBackgroundColor,
+ backgroundColor: colors.modalBackground,
flex: 1,
justifyContent: 'flex-end',
},
diff --git a/apps/mobile-app/constants/Colors.ts b/apps/mobile-app/constants/Colors.ts
index 7b2d50a8d..9ed4e22eb 100644
--- a/apps/mobile-app/constants/Colors.ts
+++ b/apps/mobile-app/constants/Colors.ts
@@ -30,6 +30,7 @@ export const Colors = {
skeleton: 'rgba(98, 98, 98, 0.33)',
red: '#ff0000',
black: '#000000',
+ modalBackground: 'rgba(0, 0, 0, 0.5)',
},
dark: {
white: '#ffffff',
@@ -58,6 +59,7 @@ export const Colors = {
skeleton: '#rgba(255,255,255,0.2)',
red: '#ff0000',
black: '#000000',
+ modalBackground: 'rgba(88, 88, 88, 0.5)',
},
} as const;