π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update to new color and sheet
aman-pilotd6c5452e272d
diff --git a/mobile/packages/lock_screen/lib/ui/custom_pin_keypad.dart b/mobile/packages/lock_screen/lib/ui/custom_pin_keypad.dartindex b0e9fe8713..1faed79009 100644--- a/mobile/packages/lock_screen/lib/ui/custom_pin_keypad.dart+++ b/mobile/packages/lock_screen/lib/ui/custom_pin_keypad.dart@@ -1,4 +1,4 @@-import "package:ente_ui/theme/ente_theme.dart";+import "package:ente_components/ente_components.dart";import "package:flutter/material.dart";class CustomPinKeypad extends StatelessWidget {@@ -14,7 +14,7 @@ class CustomPinKeypad extends StatelessWidget {mainAxisAlignment: MainAxisAlignment.end,children: [Container(- color: getEnteColorScheme(context).strokeFainter,+ color: context.componentColors.fillDark,child: Column(children: [Row(@@ -178,8 +178,7 @@ class _ButtonState extends State<_Button> {@overrideWidget build(BuildContext context) {- final colorScheme = getEnteColorScheme(context);- final textTheme = getEnteTextTheme(context);+ final colors = context.componentColors;return Expanded(child: GestureDetector(onTap: widget.onTap,@@ -194,11 +193,11 @@ class _ButtonState extends State<_Button> {shape: BoxShape.rectangle,borderRadius: BorderRadius.circular(6),color: isPressed- ? colorScheme.backgroundElevated+ ? colors.fillDarkest: widget.muteButton- ? colorScheme.fillFaintPressed+ ? Colors.transparent: widget.icon == null- ? colorScheme.backgroundElevated2+ ? colors.fillLight: null,),child: Center(@@ -217,8 +216,8 @@ class _ButtonState extends State<_Button> {child: Column(mainAxisAlignment: MainAxisAlignment.center,children: [- Text(widget.number, style: textTheme.h3),- Text(widget.text, style: textTheme.tinyBold),+ Text(widget.number, style: TextStyles.h1),+ Text(widget.text, style: TextStyles.tiny),],),),diff --git a/mobile/packages/lock_screen/lib/ui/local_authentication_unavailable_dialog.dart b/mobile/packages/lock_screen/lib/ui/local_authentication_unavailable_dialog.dartindex e7387d8b72..f3b0f8d579 100644--- a/mobile/packages/lock_screen/lib/ui/local_authentication_unavailable_dialog.dart+++ b/mobile/packages/lock_screen/lib/ui/local_authentication_unavailable_dialog.dart@@ -1,8 +1,6 @@+import 'package:ente_components/ente_components.dart';import 'package:ente_lock_screen/auth_util.dart';import 'package:ente_strings/ente_strings.dart';-import 'package:ente_ui/components/buttons/button_widget.dart';-import 'package:ente_ui/components/buttons/models/button_type.dart';-import 'package:ente_ui/components/dialog_widget.dart';import 'package:ente_ui/utils/toast_util.dart';import 'package:ente_utils/platform_util.dart';import 'package:flutter/material.dart';@@ -32,27 +30,27 @@ Future<void> showLinuxSystemAuthSetupDialog(BuildContext context, {VoidCallback? onOpenGuide,}) async {- await showDialogWidget(+ await showBottomSheetComponent(context: context,- title: pendingTranslation('Linux setup required'),- body: pendingTranslation(- 'To use device lock on Linux, Ente Auth needs a one-time system authentication setup. The guide includes setup steps for Flatpak, AppImage, and fingerprint prompts.',- ),- isDismissible: true,- buttons: [- ButtonWidget(- buttonType: ButtonType.primary,- labelText: pendingTranslation('Open guide'),- isInAlert: true,- onTap: () async {- onOpenGuide?.call();- await PlatformUtil.openWebView(- context,- pendingTranslation('Linux setup required'),- linuxSystemAuthGuideUrl,- );- },+ builder: (context) => BottomSheetComponent(+ title: pendingTranslation('Linux setup required'),+ message: pendingTranslation(+ 'To use device lock on Linux, Ente Auth needs a one-time system authentication setup. The guide includes setup steps for Flatpak, AppImage, and fingerprint prompts.',),- ],+ actions: [+ ButtonComponent(+ label: pendingTranslation('Open guide'),+ dismissModalOnSuccess: true,+ onTap: () async {+ onOpenGuide?.call();+ await PlatformUtil.openWebView(+ context,+ pendingTranslation('Linux setup required'),+ linuxSystemAuthGuideUrl,+ );+ },+ ),+ ],+ ),);}