Skip to content

Commit 656cecc

Browse files
committed
Dark mode fix in Logs dialog
1 parent cda4387 commit 656cecc

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ SPEC CHECKSUMS:
7070

7171
PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a
7272

73-
COCOAPODS: 1.9.3
73+
COCOAPODS: 1.10.0

lib/browser_tab.dart

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'dart:developer';
2+
import 'dart:math' as math;
13
import 'dart:typed_data';
24

35
import 'package:deedum/address_bar.dart';
@@ -9,10 +11,7 @@ import 'package:flutter/material.dart';
911
import 'package:flutter/widgets.dart';
1012
import 'package:intl/intl.dart';
1113

12-
import 'dart:developer';
13-
1414
import 'parser.dart';
15-
import 'dart:math' as math;
1615

1716
class HistoryEntry {
1817
final Uri location;
@@ -67,7 +66,8 @@ class BrowserTabState extends State<BrowserTab> {
6766
super.initState();
6867
var initLoc;
6968
if (initialLocation != null && initialLocation.scheme == "gemini") {
70-
initLoc = initialLocation.toString().replaceFirst(RegExp(r"^gemini://"), "");
69+
initLoc =
70+
initialLocation.toString().replaceFirst(RegExp(r"^gemini://"), "");
7171
}
7272
_controller = TextEditingController(text: initLoc);
7373
_focusNode = FocusNode();
@@ -190,12 +190,18 @@ class BrowserTabState extends State<BrowserTab> {
190190
title: Text('Logs'),
191191
contentPadding: EdgeInsets.zero,
192192
actions: [
193-
IconButton(
194-
icon: Icon(Icons.delete),
193+
FlatButton(
194+
child: Text('Clear'),
195195
onPressed: () {
196196
_clearLogs();
197197
Navigator.of(context).pop();
198-
})
198+
}),
199+
FlatButton(
200+
child: Text('Close'),
201+
onPressed: () {
202+
Navigator.of(context).pop();
203+
},
204+
)
199205
],
200206
content: Container(
201207
width: double.maxFinite,
@@ -214,7 +220,7 @@ class BrowserTabState extends State<BrowserTab> {
214220
} else if (level == "warn") {
215221
levelColor = Colors.yellowAccent;
216222
} else {
217-
levelColor = Colors.white;
223+
levelColor = Theme.of(context).dialogBackgroundColor;
218224
}
219225
return ListTile(
220226
title: Text("[$formatted] #$requestID"),

0 commit comments

Comments
 (0)