From 9af505ffb3971b782c475755dde53764bedca7ce Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Thu, 24 Apr 2025 16:40:39 +0200 Subject: [PATCH] Tweak login and unlock layout (#771) --- mobile-app/app/_layout.tsx | 3 +- mobile-app/app/login.tsx | 76 ++++++++++++++++++++++++++------------ mobile-app/app/unlock.tsx | 50 +++++++++++++++++-------- 3 files changed, 88 insertions(+), 41 deletions(-) diff --git a/mobile-app/app/_layout.tsx b/mobile-app/app/_layout.tsx index 9868b55e9..042d15222 100644 --- a/mobile-app/app/_layout.tsx +++ b/mobile-app/app/_layout.tsx @@ -129,7 +129,7 @@ function RootLayoutNav() { headerShown: true, animation: 'none', headerStyle: { - backgroundColor: colors.background, + backgroundColor: colors.accentBackground, }, headerTintColor: colors.text, headerTitleStyle: { @@ -140,6 +140,7 @@ function RootLayoutNav() { + diff --git a/mobile-app/app/login.tsx b/mobile-app/app/login.tsx index 4687ca51d..5911bb6ea 100644 --- a/mobile-app/app/login.tsx +++ b/mobile-app/app/login.tsx @@ -16,6 +16,7 @@ import { useColors } from '@/hooks/useColorScheme'; import Logo from '@/assets/images/logo.svg'; import { AppInfo } from '@/utils/AppInfo'; import LoadingIndicator from '@/components/LoadingIndicator'; +import { MaterialIcons } from '@expo/vector-icons'; export default function LoginScreen() { @@ -298,15 +299,26 @@ export default function LoginScreen() { marginBottom: 4, color: colors.text, }, - input: { + inputContainer: { + flexDirection: 'row', + alignItems: 'center', + width: '100%', borderWidth: 1, - borderRadius: 8, - padding: 12, - fontSize: 16, borderColor: colors.accentBorder, - color: colors.text, + borderRadius: 8, + marginBottom: 16, backgroundColor: colors.accentBackground, }, + inputIcon: { + padding: 10, + }, + input: { + flex: 1, + height: 45, + paddingHorizontal: 4, + fontSize: 16, + color: colors.text, + }, buttonContainer: { gap: 8, }, @@ -459,26 +471,42 @@ export default function LoginScreen() { ) : ( Username or email - setCredentials({ ...credentials, username: text })} - placeholder="name / name@company.com" - autoCapitalize="none" - autoCorrect={false} - placeholderTextColor={colors.textMuted} - /> + + + setCredentials({ ...credentials, username: text })} + placeholder="name / name@company.com" + autoCapitalize="none" + autoCorrect={false} + placeholderTextColor={colors.textMuted} + /> + Password - setCredentials({ ...credentials, password: text })} - placeholder="Enter your password" - secureTextEntry - placeholderTextColor={colors.textMuted} - autoCorrect={false} - autoCapitalize="none" - /> + + + setCredentials({ ...credentials, password: text })} + placeholder="Enter your password" + secureTextEntry + placeholderTextColor={colors.textMuted} + autoCorrect={false} + autoCapitalize="none" + /> + Enter your password to unlock your vault - + + + +