Skip to content

Commit 4486627

Browse files
committed
brighter
1 parent dfdd07a commit 4486627

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

assets/js/mud-overlay.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
target.style.setProperty("--mud-btn-primary-border", toRgbString(btnPrimaryBorder, FALLBACK.accent));
181181
target.style.setProperty("--mud-btn-primary-hover-border", toRgbString(btnPrimaryHoverBorder, FALLBACK.accent));
182182
target.style.setProperty("--mud-btn-primary-text", toRgbString(readablePrimaryText, FALLBACK.accentInk));
183+
target.style.setProperty("--mud-health-bar", toRgbString(accent, FALLBACK.accent));
183184
target.style.setProperty("--mud-status-idle", toRgbString(readableStatusIdle, FALLBACK.text));
184185
target.style.setProperty("--mud-status-connecting", toRgbString(readableStatusConnecting, FALLBACK.accent));
185186
target.style.setProperty("--mud-status-connected", toRgbString(readableStatusConnected, FALLBACK.accent));
@@ -302,7 +303,7 @@
302303
font-weight:600;
303304
}
304305
#${OVERLAY_ID} .level-text{
305-
min-width:80px;
306+
min-width:100px;
306307
font-weight:600;
307308
}
308309
#${OVERLAY_ID} .xp-bar-bg{
@@ -336,7 +337,7 @@
336337
}
337338
#${OVERLAY_ID} .health-bar{
338339
height:100%;
339-
background:var(--mud-btn-primary-bg,#1f4b47);
340+
background:var(--mud-health-bar,#29e3c7);
340341
transition:width 0.3s ease, background-color 0.3s ease;
341342
border-radius:4px;
342343
}
@@ -809,7 +810,7 @@
809810

810811
// Use MUD theme primary color for full health, then yellow/red as it drops
811812
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)
813814
} else if (percent > 33) {
814815
healthBar.style.backgroundColor = "#fbbf24"; // yellow
815816
} else {

0 commit comments

Comments
 (0)