π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Match legacy recovery notification design
Neeraj Guptaf81e8aa32cec
diff --git a/mobile/packages/legacy/lib/components/legacy_kit_icons.dart b/mobile/packages/legacy/lib/components/legacy_kit_icons.dartindex 1ccca5b4fd..a86559b7be 100644--- a/mobile/packages/legacy/lib/components/legacy_kit_icons.dart+++ b/mobile/packages/legacy/lib/components/legacy_kit_icons.dart@@ -126,24 +126,3 @@ class LegacyKitAlertIcon extends StatelessWidget {);}}--class LegacyKitRecoveryAlertIcon extends StatelessWidget {- final Color color;- final double size;-- const LegacyKitRecoveryAlertIcon({- required this.color,- this.size = 18,- super.key,- });-- @override- Widget build(BuildContext context) {- return HugeIcon(- icon: HugeIcons.strokeRoundedAlert01,- color: color,- size: size,- strokeWidth: _hugeIconStrokeWidth,- );- }-}diff --git a/mobile/packages/legacy/lib/pages/legacy_kit_page.dart b/mobile/packages/legacy/lib/pages/legacy_kit_page.dartindex 2a0edf5ddc..d2fe36992f 100644--- a/mobile/packages/legacy/lib/pages/legacy_kit_page.dart+++ b/mobile/packages/legacy/lib/pages/legacy_kit_page.dart@@ -647,6 +647,10 @@ class _RecoveryBanner extends StatelessWidget {final bannerColor = colorScheme.isLightTheme? const Color(0xFFFAEBEB): const Color(0xFF292929);+ const warningColor = Color(0xFFF63A3A);+ final bodyTextColor = colorScheme.isLightTheme+ ? colorScheme.textMuted+ : const Color(0xFF999999);return Container(padding: const EdgeInsets.all(16),@@ -660,13 +664,11 @@ class _RecoveryBanner extends StatelessWidget {Row(crossAxisAlignment: CrossAxisAlignment.start,children: [- SizedBox(+ const SizedBox(width: 18,height: 20,child: Center(- child: LegacyKitRecoveryAlertIcon(- color: colorScheme.warning400,- ),+ child: LegacyKitAlertIcon(),),),const SizedBox(width: 8),@@ -674,7 +676,7 @@ class _RecoveryBanner extends StatelessWidget {child: Text(context.strings.legacyKitRecoveryAttemptInProgress,style: textTheme.bodyBold.copyWith(- color: colorScheme.warning400,+ color: warningColor,height: 20 / 14,),),@@ -685,7 +687,7 @@ class _RecoveryBanner extends StatelessWidget {Text(context.strings.legacyKitRecoveryAttemptMessage(availableAt),style: textTheme.mini.copyWith(- color: colorScheme.textMuted,+ color: bodyTextColor,height: 16 / 12,),),@@ -694,7 +696,7 @@ class _RecoveryBanner extends StatelessWidget {text: context.strings.rejectRecovery,height: 52,textStyle: textTheme.small.copyWith(height: 20 / 14),- backgroundColor: colorScheme.warning700,+ backgroundColor: warningColor,onTap: () async => onBlockRecovery(),),],