diff --git a/plugins/billing-resources/src/components/LimitsIndicator.svelte b/plugins/billing-resources/src/components/LimitsIndicator.svelte index 86f8ba833a..a4b17804c9 100644 --- a/plugins/billing-resources/src/components/LimitsIndicator.svelte +++ b/plugins/billing-resources/src/components/LimitsIndicator.svelte @@ -135,6 +135,6 @@ border-radius: var(--small-BorderRadius); transition: background-color 0.2s ease; position: relative; - border: 1px solid var(--button-secondary-BorderColor); + border: 1px solid var(--theme-trans-color); } diff --git a/plugins/billing-resources/src/components/UsageProgressBar.svelte b/plugins/billing-resources/src/components/UsageProgressBar.svelte index 646441fdae..954617f04d 100644 --- a/plugins/billing-resources/src/components/UsageProgressBar.svelte +++ b/plugins/billing-resources/src/components/UsageProgressBar.svelte @@ -19,13 +19,13 @@ $: clampedPercent = Math.min(Math.max(percent, 0), 1) - // Calculate color based on current percentage - $: fillColor = clampedPercent >= 0.9 ? '#e53935' : clampedPercent >= 0.7 ? '#fbc02d' : '#43a047' + // Calculate style class based on current percentage + $: fillClass = clampedPercent >= 0.9 ? 'critical' : clampedPercent >= 0.7 ? 'warning' : 'normal'
-
+
@@ -49,5 +49,17 @@ transition: width 0.3s ease, background-color 0.3s ease; + + &.normal { + background-color: var(--theme-won-color); + } + + &.warning { + background-color: var(--theme-warning-color); + } + + &.critical { + background-color: var(--theme-error-color); + } }