mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
DebugScreen: Make it work with dark mode
This commit is contained in:
@ -164,11 +164,12 @@ class _DebugScreenState extends State<DebugScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Color _colorForLevel(String l) {
|
Color _colorForLevel(String l) {
|
||||||
|
var theme = Theme.of(context);
|
||||||
switch (l) {
|
switch (l) {
|
||||||
case 'e':
|
case 'e':
|
||||||
return Colors.red;
|
return Colors.red;
|
||||||
}
|
}
|
||||||
return Colors.black;
|
return theme.brightness == Brightness.light ? Colors.black : Colors.white;
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildDateWidget(DateTime dt) {
|
Widget _buildDateWidget(DateTime dt) {
|
||||||
|
Reference in New Issue
Block a user