π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Align legacy recovery alert icons
Neeraj Gupta96d383ba2a26
diff --git a/mobile/packages/legacy/lib/components/legacy_kit_icons.dart b/mobile/packages/legacy/lib/components/legacy_kit_icons.dartindex 8a0815997b..88bebe4bf2 100644--- a/mobile/packages/legacy/lib/components/legacy_kit_icons.dart+++ b/mobile/packages/legacy/lib/components/legacy_kit_icons.dart@@ -93,7 +93,7 @@ class LegacyKitRowIcon extends StatelessWidget {const LegacyKitRowIcon({required this.color,- this.size = 20,+ this.size = 18,super.key,});@@ -107,3 +107,24 @@ class LegacyKitRowIcon extends StatelessWidget {);}}++class LegacyKitAlertIcon extends StatelessWidget {+ final Color color;+ final double size;++ const LegacyKitAlertIcon({+ required this.color,+ this.size = 18,+ super.key,+ });++ @override+ Widget build(BuildContext context) {+ return HugeIcon(+ icon: HugeIcons.strokeRoundedAlert02,+ color: color,+ size: size,+ strokeWidth: _hugeIconStrokeWidth,+ );+ }+}diff --git a/mobile/packages/legacy/lib/pages/emergency_page.dart b/mobile/packages/legacy/lib/pages/emergency_page.dartindex b5a0cffc9e..65ed3077d2 100644--- a/mobile/packages/legacy/lib/pages/emergency_page.dart+++ b/mobile/packages/legacy/lib/pages/emergency_page.dart@@ -1065,15 +1065,19 @@ class _LegacyKitLeadingIcon extends StatelessWidget {Center(child: LegacyKitRowIcon(color: colorScheme.primary700,- size: 20,),),if (showWarningBadge)Positioned(- right: 4,- bottom: 4,- child: _LegacyKitWarningBadge(- borderColor: colorScheme.backdropBase,+ left: 20,+ top: 20,+ child: SizedBox.square(+ dimension: 16,+ child: Center(+ child: LegacyKitAlertIcon(+ color: colorScheme.warning400,+ ),+ ),),),],@@ -1082,41 +1086,6 @@ class _LegacyKitLeadingIcon extends StatelessWidget {}}-class _LegacyKitWarningBadge extends StatelessWidget {- final Color borderColor;-- const _LegacyKitWarningBadge({required this.borderColor});-- @override- Widget build(BuildContext context) {- final colorScheme = getEnteColorScheme(context);-- return Container(- width: 11,- height: 11,- decoration: BoxDecoration(- color: colorScheme.warning500,- shape: BoxShape.circle,- border: Border.all(- color: borderColor,- width: 1.5,- ),- ),- child: const Center(- child: Text(- "!",- style: TextStyle(- color: Colors.white,- fontSize: 7.0,- height: 1,- fontWeight: FontWeight.w700,- ),- ),- ),- );- }-}-class _WarningBanner extends StatelessWidget {final String text;@@ -1135,7 +1104,10 @@ class _WarningBanner extends StatelessWidget {),child: Row(children: [- Image.asset("assets/warning-red.png", width: 32, height: 32),+ LegacyKitAlertIcon(+ color: colorScheme.warning400,+ size: 32,+ ),const SizedBox(width: 12),Expanded(child: Text(