Watch
0
0
Fork
You've already forked hyperhive
0

frontend: one glass token pair in place of three copied light and dark blocks

Headers, badges, terminal panes, the message box and the dashboard's bars read --glass-clear and --glass-filter from theme.css; the light palette (colors.css) and the solid-backgrounds setting set them. Each surface keeps a single rule, the per-theme override blocks and the quiet-badge specificity workaround go, and the dashboard and agent page now follow the light palette like the swarm UI.
This commit is contained in:
iris 2026-11-19 20:49:40 +01:00 • committed by mara
commit 1ca82b3e09

View file

@ -1,25 +1,9 @@
/* The frosted surfaces, made opaque while `data-solid="true"` is on `<html>`
(`solid-backgrounds.tsx`). Each rule names the same surface as the rule that
makes it see-through, with `html:root` in front so it outranks that rule's
theme variants whatever order the stylesheets load in. The dialog scrim is
left alone: it dims the page on purpose. */
html:root[data-solid="true"] .shell-header {
background: var(--bg-elev);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
html:root[data-solid="true"] .ui-badge:not(.ui-badge-quiet) {
background: var(--purple-dim);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
html:root[data-solid="true"] .terminal-wrap {
background: var(--code-bg);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
html:root[data-solid="true"] .ui-agent-input-form {
background: var(--bg-elev);
-webkit-backdrop-filter: none;
backdrop-filter: none;
(`solid-backgrounds.tsx`): the two glass tokens of `theme.css` go to solid,
and every glass surface follows. `html:root` outranks theme.css's `:root`
whatever order the stylesheets load in. The dialog scrim is left alone: it
dims the page on purpose. */
html:root[data-solid="true"] {
--glass-clear: 0;
--glass-filter: none;
}