Quellcode durchsuchen

made 'View logs' visible in light theme in the 'Report bug' dialog box

ashilkn vor 3 Jahren
Ursprung
Commit
ae5ab5bfd5
1 geänderte Dateien mit 7 neuen und 4 gelöschten Zeilen
  1. 7 4
      lib/utils/email_util.dart

+ 7 - 4
lib/utils/email_util.dart

@@ -9,6 +9,7 @@ import 'package:flutter_email_sender/flutter_email_sender.dart';
 import 'package:logging/logging.dart';
 import 'package:path_provider/path_provider.dart';
 import 'package:photos/core/error-reporting/super_logging.dart';
+import 'package:photos/ente_theme_data.dart';
 import 'package:photos/ui/common/dialogs.dart';
 import 'package:photos/ui/log_file_viewer.dart';
 import 'package:photos/utils/dialog_util.dart';
@@ -35,19 +36,21 @@ Future<void> sendLogs(
         children: [
           Icon(
             Icons.feed_outlined,
-            color: Colors.white.withOpacity(0.85),
+            color: Theme.of(context).iconTheme.color.withOpacity(0.85),
           ),
           Padding(padding: EdgeInsets.all(4)),
           Text(
             "View logs",
             style: TextStyle(
-              color: Colors.white.withOpacity(0.85),
-            ),
+                fontFamily: "Inter",
+                color: Theme.of(context)
+                    .colorScheme
+                    .defaultTextColor
+                    .withOpacity(0.85)),
           ),
         ],
       ),
       onPressed: () async {
-        // routeToPage(context, LogFileViewer(SuperLogging.logFile));
         showDialog(
           context: context,
           builder: (BuildContext context) {