Fix(ui): Fix some ui bugs
Find Button In DeviceLogsScreen Fix offlineText when in DarkMode Update offlineIcons
This commit is contained in:
@@ -151,7 +151,7 @@ class DeviceUtils {
|
||||
return devices..sort((a, b) => (a.name ?? '').compareTo(b.name ?? ''));
|
||||
}
|
||||
|
||||
Color getTableRowColor(int state) {
|
||||
Color getTableRowColor(BuildContext context, int state) {
|
||||
if (state == 1) {
|
||||
return Colors.red;
|
||||
} else if (state == 0) {
|
||||
@@ -161,7 +161,7 @@ class DeviceUtils {
|
||||
} else if (state == -1) {
|
||||
return Colors.grey;
|
||||
} else {
|
||||
return Colors.black87;
|
||||
return Theme.of(context).colorScheme.onSurface;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user