π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Allow switching Auth QR finder colors on tap
Neeraj Gupta3a01a17ff05e
diff --git a/mobile/apps/auth/lib/ui/components/auth_qr_dialog.dart b/mobile/apps/auth/lib/ui/components/auth_qr_dialog.dartindex a78f5a045f..91250ba522 100644--- a/mobile/apps/auth/lib/ui/components/auth_qr_dialog.dart+++ b/mobile/apps/auth/lib/ui/components/auth_qr_dialog.dart@@ -40,6 +40,7 @@ class AuthQrDialog extends StatefulWidget {class _AuthQrDialogState extends State<AuthQrDialog> {final GlobalKey _qrKey = GlobalKey();+ bool _useBlackFinderPatterns = false;Future<void> _shareQrCode() async {try {@@ -83,7 +84,7 @@ class _AuthQrDialogState extends State<AuthQrDialog> {final double qrSize = min(screenWidth - 80, 300.0);final enteTextTheme = getEnteTextTheme(context);- // QR text color - always black for scanability+ // Keep data modules black for scanability.const qrTextColor = textBaseLight;return Semantics(@@ -155,18 +156,28 @@ class _AuthQrDialogState extends State<AuthQrDialog> {),],SizedBox(height: qrSize * 0.07),- QrImageView(- data: widget.data,- eyeStyle: const QrEyeStyle(- eyeShape: QrEyeShape.square,- color: accentColor,- ),- dataModuleStyle: const QrDataModuleStyle(- dataModuleShape: QrDataModuleShape.square,- color: qrTextColor,+ GestureDetector(+ onTap: () {+ setState(() {+ _useBlackFinderPatterns =+ !_useBlackFinderPatterns;+ });+ },+ child: QrImageView(+ data: widget.data,+ eyeStyle: QrEyeStyle(+ eyeShape: QrEyeShape.square,+ color: _useBlackFinderPatterns+ ? qrTextColor+ : context.componentColors.primary,+ ),+ dataModuleStyle: const QrDataModuleStyle(+ dataModuleShape: QrDataModuleShape.square,+ color: qrTextColor,+ ),+ version: QrVersions.auto,+ size: qrSize,),- version: QrVersions.auto,- size: qrSize,),SizedBox(height: qrSize * 0.07),Align(