Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update password entry page to use a fixed color for valid field value

AmanRajSinghMouryaa74908214d61
diff --git a/mobile/packages/accounts/lib/pages/password_entry_page.dart b/mobile/packages/accounts/lib/pages/password_entry_page.dart
index 36152d883b..85b6f63b25 100644
--- a/mobile/packages/accounts/lib/pages/password_entry_page.dart
+++ b/mobile/packages/accounts/lib/pages/password_entry_page.dart
@@ -87,10 +87,7 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
@override
Widget build(BuildContext context) {
final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;
-
- // Initialize theme-aware color
- final colorScheme = getEnteColorScheme(context);
- _validFieldValueColor = colorScheme.fillFaint.withOpacity(0.5);
+ _validFieldValueColor = const Color.fromRGBO(45, 194, 98, 0.2);
FloatingActionButtonLocation? fabLocation() {
if (isKeypadOpen) {
@@ -232,8 +229,9 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
null);
},
decoration: InputDecoration(
- fillColor:
- _isPasswordValid ? _validFieldValueColor : null,
+ fillColor: _isPasswordValid
+ ? _validFieldValueColor
+ : getEnteColorScheme(context).fillFaint,
filled: true,
hintText: context.strings.password,
contentPadding: const EdgeInsets.all(20),
@@ -295,8 +293,9 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
onEditingComplete: () =>
TextInput.finishAutofillContext(),
decoration: InputDecoration(
- fillColor:
- _passwordsMatch ? _validFieldValueColor : null,
+ fillColor: _passwordsMatch
+ ? _validFieldValueColor
+ : getEnteColorScheme(context).fillFaint,
filled: true,
hintText: context.strings.confirmPassword,
contentPadding: const EdgeInsets.symmetric(