Skip to content

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

Update PinNumpad style (#1340)

Leendert de Borst73ae2a7b6273
diff --git a/apps/mobile-app/android/app/src/main/res/values/styles.xml b/apps/mobile-app/android/app/src/main/res/values/styles.xml
index 8430c19e4..a0bb80847 100644
--- a/apps/mobile-app/android/app/src/main/res/values/styles.xml
+++ b/apps/mobile-app/android/app/src/main/res/values/styles.xml
@@ -32,15 +32,19 @@
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowLightNavigationBar">true</item>
</style>
- <style name="PinNumpadButton">
+ <style name="PinNumpadButton" parent="Widget.MaterialComponents.Button">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">60dp</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_marginStart">6dp</item>
<item name="android:layout_marginEnd">6dp</item>
- <item name="android:background">@color/av_accent_background</item>
+ <item name="backgroundTint">@color/av_accent_background</item>
<item name="android:textSize">24sp</item>
<item name="android:textStyle">bold</item>
- <item name="android:textColor">?android:attr/textColorPrimary</item>
+ <item name="android:textColor">@color/av_text</item>
+ <item name="cornerRadius">12dp</item>
+ <item name="android:insetTop">0dp</item>
+ <item name="android:insetBottom">3dp</item>
+ <item name="rippleColor">@color/av_primary</item>
</style>
</resources>
\ No newline at end of file
diff --git a/apps/mobile-app/components/pin/PinNumpad.tsx b/apps/mobile-app/components/pin/PinNumpad.tsx
index 704b52135..e451dcc00 100644
--- a/apps/mobile-app/components/pin/PinNumpad.tsx
+++ b/apps/mobile-app/components/pin/PinNumpad.tsx
@@ -1,10 +1,9 @@
import { MaterialIcons } from '@expo/vector-icons';
import React from 'react';
-import { StyleSheet, View, Text, Pressable, Animated } from 'react-native';
+import { StyleSheet, View, Text, Pressable, Animated, TouchableOpacity } from 'react-native';
import { useColors } from '@/hooks/useColorScheme';
import { ThemedText } from '@/components/themed/ThemedText';
-import { RobustPressable } from '@/components/ui/RobustPressable';
/**
* Animated button for numpad
@@ -154,6 +153,11 @@ export const PinNumpad: React.FC<PinNumpadProps> = ({
const canSubmit = pin.length >= minLength;
+ // Debug: Log when canSubmit changes
+ React.useEffect(() => {
+ console.debug('[PinNumpad] canSubmit:', canSubmit, 'pin.length:', pin.length, 'minLength:', minLength);
+ }, [canSubmit, pin.length, minLength]);
+
const styles = StyleSheet.create({
confirmButton: {
alignItems: 'center',
@@ -333,15 +337,21 @@ export const PinNumpad: React.FC<PinNumpadProps> = ({
{/* Confirm Button - only show if onSubmit is provided */}
{showSubmitButton && (
- <RobustPressable
+ <TouchableOpacity
style={styles.confirmButton}
- onPress={onSubmit}
+ onPress={() => {
+ console.debug('[PinNumpad] Submit button pressed, canSubmit:', canSubmit);
+ if (onSubmit) {
+ onSubmit();
+ }
+ }}
disabled={!canSubmit}
+ activeOpacity={0.7}
>
<ThemedText style={styles.confirmButtonText}>
{submitButtonText}
</ThemedText>
- </RobustPressable>
+ </TouchableOpacity>
)}
</View>
);