Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: Improve light theme contrast for low I/O values. Related to #976

rcourtmandc65b96e6de9
diff --git a/frontend-modern/src/components/Dashboard/GuestRow.tsx b/frontend-modern/src/components/Dashboard/GuestRow.tsx
index 093622af54..46310ed0b3 100644
--- a/frontend-modern/src/components/Dashboard/GuestRow.tsx
+++ b/frontend-modern/src/components/Dashboard/GuestRow.tsx
@@ -32,7 +32,7 @@ type Guest = VM | Container;
*/
function getIOColorClass(bytesPerSec: number): string {
const mbps = bytesPerSec / (1024 * 1024);
- if (mbps < 1) return 'text-gray-300 dark:text-gray-400';
+ if (mbps < 1) return 'text-gray-500 dark:text-gray-400';
if (mbps < 10) return 'text-green-600 dark:text-green-400';
if (mbps < 50) return 'text-yellow-600 dark:text-yellow-400';
return 'text-red-600 dark:text-red-400';
diff --git a/frontend-modern/src/components/Dashboard/IOMetric.tsx b/frontend-modern/src/components/Dashboard/IOMetric.tsx
index a0f1e5b959..431711fb4e 100644
--- a/frontend-modern/src/components/Dashboard/IOMetric.tsx
+++ b/frontend-modern/src/components/Dashboard/IOMetric.tsx
@@ -29,7 +29,7 @@ export function IOMetric(props: IOMetricProps) {
if (props.disabled) return 'text-gray-400 dark:text-gray-500';
const mbps = currentValue() / (1024 * 1024);
- if (mbps < 1) return 'text-gray-300 dark:text-gray-400';
+ if (mbps < 1) return 'text-gray-500 dark:text-gray-400';
if (mbps < 10) return 'text-green-600 dark:text-green-400';
if (mbps < 50) return 'text-yellow-600 dark:text-yellow-400';
return 'text-red-600 dark:text-red-400';