π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use exported legacy alert icon
Neeraj Gupta8b0ddf6a4466
diff --git a/mobile/packages/legacy/assets/legacy_kit_alert_02.svg b/mobile/packages/legacy/assets/legacy_kit_alert_02.svgnew file mode 100644index 0000000000..40bb6e211e--- /dev/null+++ b/mobile/packages/legacy/assets/legacy_kit_alert_02.svg@@ -0,0 +1,5 @@+<svg width="17" height="16" viewBox="0 0 16.5 15.75" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M3.24129 6.1372C5.05154 2.93399 5.95667 1.33239 7.1987 0.920108C7.88199 0.693297 8.61802 0.693297 9.30131 0.920108C10.5433 1.33239 11.4485 2.93399 13.2587 6.1372C15.069 9.3404 15.9741 10.942 15.7026 12.247C15.5532 12.9649 15.1852 13.6161 14.6513 14.1073C13.6808 15 11.8705 15 8.25 15C4.62949 15 2.81923 15 1.84873 14.1073C1.31481 13.6161 0.946797 12.9649 0.797422 12.247C0.5259 10.942 1.43103 9.3404 3.24129 6.1372Z" fill="#F63A3A" stroke="#F63A3A" stroke-width="1.5"/>+ <path d="M8.244 10.875H8.25074" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>+ <path d="M8.25 8.625L8.25 5.625" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>+</svg>diff --git a/mobile/packages/legacy/lib/components/legacy_kit_icons.dart b/mobile/packages/legacy/lib/components/legacy_kit_icons.dartindex 7f9626f914..181b59bfd0 100644--- a/mobile/packages/legacy/lib/components/legacy_kit_icons.dart+++ b/mobile/packages/legacy/lib/components/legacy_kit_icons.dart@@ -1,4 +1,5 @@import "package:flutter/widgets.dart";+import "package:flutter_svg/flutter_svg.dart";import "package:hugeicons/hugeicons.dart";const double _hugeIconStrokeWidth = 1.5;@@ -109,22 +110,21 @@ class LegacyKitRowIcon extends StatelessWidget {}class LegacyKitAlertIcon extends StatelessWidget {- final Color color;final double size;const LegacyKitAlertIcon({- required this.color,this.size = 18,super.key,});@overrideWidget build(BuildContext context) {- return HugeIcon(- icon: HugeIcons.strokeRoundedAlert02,- color: color,- size: size,- strokeWidth: _hugeIconStrokeWidth,+ return SvgPicture.asset(+ "assets/legacy_kit_alert_02.svg",+ package: "ente_legacy",+ width: size,+ height: size,+ fit: BoxFit.contain,);}}diff --git a/mobile/packages/legacy/lib/pages/emergency_page.dart b/mobile/packages/legacy/lib/pages/emergency_page.dartindex 65ed3077d2..8fd2aac7e7 100644--- a/mobile/packages/legacy/lib/pages/emergency_page.dart+++ b/mobile/packages/legacy/lib/pages/emergency_page.dart@@ -1068,15 +1068,13 @@ class _LegacyKitLeadingIcon extends StatelessWidget {),),if (showWarningBadge)- Positioned(+ const Positioned(left: 20,top: 20,child: SizedBox.square(dimension: 16,child: Center(- child: LegacyKitAlertIcon(- color: colorScheme.warning400,- ),+ child: LegacyKitAlertIcon(),),),),@@ -1095,24 +1093,34 @@ class _WarningBanner extends StatelessWidget {Widget build(BuildContext context) {final colorScheme = getEnteColorScheme(context);final textTheme = getEnteTextTheme(context);+ final backgroundColor = colorScheme.isLightTheme+ ? const Color(0xFFFAEBEB)+ : const Color(0xFF292929);return Container(- padding: const EdgeInsets.all(18),+ padding: const EdgeInsets.all(16),decoration: BoxDecoration(- color: colorScheme.warning400.withValues(alpha: 0.13),+ color: backgroundColor,borderRadius: BorderRadius.circular(20),),child: Row(+ crossAxisAlignment: CrossAxisAlignment.center,children: [- LegacyKitAlertIcon(- color: colorScheme.warning400,- size: 32,+ const SizedBox(+ width: 18,+ height: 20,+ child: Center(+ child: LegacyKitAlertIcon(),+ ),),- const SizedBox(width: 12),+ const SizedBox(width: 8),Expanded(child: Text(text,- style: textTheme.bodyBold.copyWith(color: colorScheme.warning400),+ style: textTheme.bodyBold.copyWith(+ color: colorScheme.warning400,+ height: 20 / 14,+ ),),),],