From 78163012fabea35a7a73b260b572bcb3d00f0470 Mon Sep 17 00:00:00 2001
From: vjrj <vjrj@comunes.org>
Date: Wed, 19 Apr 2023 20:49:44 +0200
Subject: [PATCH] Fix for #33

---
 lib/ui/widgets/fifth_screen/export_dialog.dart | 3 ++-
 lib/ui/widgets/fifth_screen/import_dialog.dart | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/ui/widgets/fifth_screen/export_dialog.dart b/lib/ui/widgets/fifth_screen/export_dialog.dart
index df1fa33f..e0ba1f0c 100644
--- a/lib/ui/widgets/fifth_screen/export_dialog.dart
+++ b/lib/ui/widgets/fifth_screen/export_dialog.dart
@@ -49,7 +49,8 @@ class _ExportDialogState extends State<ExportDialog> {
           ),
           Flexible(
             child: PatternLock(
-              selectedColor: Colors.amber,
+              selectedColor: selectedPatternLock(context),
+              notSelectedColor: notSelectedPatternLock(context),
               pointRadius: 12,
               onInputComplete: (List<int> input) {
                 if (input.length < 3) {
diff --git a/lib/ui/widgets/fifth_screen/import_dialog.dart b/lib/ui/widgets/fifth_screen/import_dialog.dart
index 72580713..7065e5d1 100644
--- a/lib/ui/widgets/fifth_screen/import_dialog.dart
+++ b/lib/ui/widgets/fifth_screen/import_dialog.dart
@@ -61,7 +61,8 @@ class _ImportDialogState extends State<ImportDialog> {
                   ),
                   Flexible(
                     child: PatternLock(
-                      selectedColor: Colors.red,
+                      selectedColor: selectedPatternLock(context),
+                      notSelectedColor: notSelectedPatternLock(context),
                       pointRadius: 8,
                       fillPoints: true,
                       onInputComplete: (List<int> pattern) async {
-- 
GitLab