From 2510d030939733a79baba4bf15ff0850714ab067 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Fri, 8 May 2026 17:46:27 +0200 Subject: [PATCH] fix(frontend): retheme dashboard gauges to AD-Vue blue and shrink them - StatusCard's CPU/RAM/Swap/Storage dashboards rendered at AD-Vue's default 120px width which made the percent text balloon to ~36px. Drop to 90px (70px on mobile) so the gauge fits the rest of the card. - The CurTotal.color thresholds still hardcoded the legacy teal/orange palette (#008771 / #f37b24 / #cf3c3c). Switch to AD-Vue's primary / warning / danger tokens (#1677ff / #faad14 / #ff4d4f) so the gauges match the rest of the panel under both light and dark themes. - XrayStatusCard's running-animation badge ring also still pointed at the deleted --color-primary-100 var; hardcode the new primary blue. Co-Authored-By: Claude Opus 4.7 --- frontend/src/models/status.js | 8 +++++--- frontend/src/pages/index/StatusCard.vue | 16 +++++++++++----- frontend/src/pages/index/XrayStatusCard.vue | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/frontend/src/models/status.js b/frontend/src/models/status.js index 5d2c671f..5bfa63b0 100644 --- a/frontend/src/models/status.js +++ b/frontend/src/models/status.js @@ -12,10 +12,12 @@ export class CurTotal { } get color() { + // Match AD-Vue 4's semantic palette so the gauges fit the + // global blue/gold/red theme instead of the legacy teal/orange. const p = this.percent; - if (p < 80) return '#008771'; // green - if (p < 90) return '#f37b24'; // orange - return '#cf3c3c'; // red + if (p < 80) return '#1677ff'; // primary + if (p < 90) return '#faad14'; // warning + return '#ff4d4f'; // danger } } diff --git a/frontend/src/pages/index/StatusCard.vue b/frontend/src/pages/index/StatusCard.vue index 608a296f..9865d5ba 100644 --- a/frontend/src/pages/index/StatusCard.vue +++ b/frontend/src/pages/index/StatusCard.vue @@ -1,4 +1,5 @@