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

@ -39,31 +39,18 @@
/* Frosted glass, the recipe of the badges (`Badge.css`): translucent over a
blur, so the rows scroll behind it. Dark only, as there: on a light page
the busy content behind would wash the text out, so light keeps the solid
fill. */
background: color-mix(in srgb, var(--bg-elev) 55%, transparent);
-webkit-backdrop-filter: blur(10px) saturate(140%);
backdrop-filter: blur(10px) saturate(140%);
fill (`--glass-clear` in theme.css). */
background: color-mix(
in srgb,
var(--bg-elev) calc(100% - 45% * var(--glass-clear)),
transparent
);
-webkit-backdrop-filter: var(--glass-filter);
backdrop-filter: var(--glass-filter);
box-shadow:
0 0.3em 1em rgba(0, 0, 0, 0.45),
0 0 0 1px color-mix(in srgb, var(--purple) 12%, transparent);
}
@media (prefers-color-scheme: light) {
.ui-agent-input-form {
background: var(--bg-elev);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
}
:root[data-theme="light"] .ui-agent-input-form {
background: var(--bg-elev);
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
:root[data-theme="dark"] .ui-agent-input-form {
background: color-mix(in srgb, var(--bg-elev) 55%, transparent);
-webkit-backdrop-filter: blur(10px) saturate(140%);
backdrop-filter: blur(10px) saturate(140%);
}
.ui-agent-input-form:focus-within {
border-color: var(--purple);
box-shadow: