Fix(ui): Fix some ui bugs

Find Button In DeviceLogsScreen
Fix offlineText when in DarkMode
Update offlineIcons
This commit is contained in:
anhtunz
2025-04-04 10:32:50 +07:00
parent 6230036c04
commit 1ab544afbb
7 changed files with 131 additions and 137 deletions

View File

@@ -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;
}
}