|
180 | 180 | target.style.setProperty("--mud-btn-primary-border", toRgbString(btnPrimaryBorder, FALLBACK.accent)); |
181 | 181 | target.style.setProperty("--mud-btn-primary-hover-border", toRgbString(btnPrimaryHoverBorder, FALLBACK.accent)); |
182 | 182 | target.style.setProperty("--mud-btn-primary-text", toRgbString(readablePrimaryText, FALLBACK.accentInk)); |
| 183 | + target.style.setProperty("--mud-health-bar", toRgbString(accent, FALLBACK.accent)); |
183 | 184 | target.style.setProperty("--mud-status-idle", toRgbString(readableStatusIdle, FALLBACK.text)); |
184 | 185 | target.style.setProperty("--mud-status-connecting", toRgbString(readableStatusConnecting, FALLBACK.accent)); |
185 | 186 | target.style.setProperty("--mud-status-connected", toRgbString(readableStatusConnected, FALLBACK.accent)); |
|
302 | 303 | font-weight:600; |
303 | 304 | } |
304 | 305 | #${OVERLAY_ID} .level-text{ |
305 | | - min-width:80px; |
| 306 | + min-width:100px; |
306 | 307 | font-weight:600; |
307 | 308 | } |
308 | 309 | #${OVERLAY_ID} .xp-bar-bg{ |
|
336 | 337 | } |
337 | 338 | #${OVERLAY_ID} .health-bar{ |
338 | 339 | height:100%; |
339 | | - background:var(--mud-btn-primary-bg,#1f4b47); |
| 340 | + background:var(--mud-health-bar,#29e3c7); |
340 | 341 | transition:width 0.3s ease, background-color 0.3s ease; |
341 | 342 | border-radius:4px; |
342 | 343 | } |
|
809 | 810 |
|
810 | 811 | // Use MUD theme primary color for full health, then yellow/red as it drops |
811 | 812 | if (percent > 66) { |
812 | | - healthBar.style.backgroundColor = ""; // Clear inline style to use CSS default (--mud-btn-primary-bg) |
| 813 | + healthBar.style.backgroundColor = ""; // Clear inline style to use CSS default (--mud-health-bar) |
813 | 814 | } else if (percent > 33) { |
814 | 815 | healthBar.style.backgroundColor = "#fbbf24"; // yellow |
815 | 816 | } else { |
|
0 commit comments