Restyle server browser UI; hide overlay on join
Restyles the server browser to match main-menu/settings (Futura PT Demibold, amber/green palette, yellow selection bars, shared panel chrome), removes SVG border strips, and tweaks modal width/layout. Adds JS + C++ coordination so the custom main-menu overlay hides when a server join begins (C++ invokes onSessionLoading and calls HideMainMenu; CompleteJoinFailure restores the menu/browser). Controller glyph tint now derives from --co-amber. Updates changelog and dev-log; includes compiled Vault109 script update.
This commit is contained in:
@@ -5,16 +5,6 @@
|
||||
return Math.max(0, Math.min(255, Math.round(value)));
|
||||
}
|
||||
|
||||
function applyHudRgb(root, prefix, color) {
|
||||
if (!color) {
|
||||
return;
|
||||
}
|
||||
|
||||
root.style.setProperty(prefix + "-r", String(clampByte(color.r)));
|
||||
root.style.setProperty(prefix + "-g", String(clampByte(color.g)));
|
||||
root.style.setProperty(prefix + "-b", String(clampByte(color.b)));
|
||||
}
|
||||
|
||||
function applyCursorTint(root, color) {
|
||||
if (!color) {
|
||||
return;
|
||||
@@ -41,8 +31,6 @@
|
||||
|
||||
var root = document.documentElement;
|
||||
var hud = theme.hud || theme;
|
||||
applyHudRgb(root, "--co", hud);
|
||||
applyHudRgb(root, "--co-bg", theme.hudBackground);
|
||||
applyCursorTint(root, hud);
|
||||
|
||||
if (window.CO_ControllerGlyphs && CO_ControllerGlyphs.onThemeApplied) {
|
||||
@@ -50,7 +38,7 @@
|
||||
}
|
||||
|
||||
console.log(
|
||||
"[CO] Applied HUD theme rgb(" +
|
||||
"[CO] Applied browser cursor theme rgb(" +
|
||||
clampByte(hud.r) + "," +
|
||||
clampByte(hud.g) + "," +
|
||||
clampByte(hud.b) + ")"
|
||||
|
||||
Reference in New Issue
Block a user