Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(glass): slider scope, Clear legibility, highlights, usage pill, board styles
iceclatterWT5cea0bdce879
diff --git a/src/renderer/App.tsx b/src/renderer/App.tsxindex 5cd877e7f..a74667d31 100644--- a/src/renderer/App.tsx+++ b/src/renderer/App.tsx@@ -19,7 +19,7 @@ import { resolveUiScale } from '../shared/ui-scale'import { resolveTabBarHeight } from '../shared/window-chrome-metrics'import { useAppTheme } from './state/useAppTheme'import { installWindowActivityOnDocument } from './lib/windowActivity'-import { glassChromeAlpha, glassSurfaceAlpha, parseCssColor, resolveGlassSlider } from './lib/glassContrast'+import { glassChromeAlpha, glassChromeAlphas, parseCssColor, resolveGlassSlider } from './lib/glassContrast'import { useGlassA11y } from './lib/useGlassA11y'import { GlassRefraction } from './components/GlassRefraction'import { isLiquidGlass } from './lib/appTheme'@@ -117,21 +117,23 @@ export default function App() {setGlassChrome({ panel, rgb: parseCssColor(panel)?.rgb, readable: glassChromeAlpha(text, panel) })root.dataset.ntGlass = 'on'}, [liquidGlass, appTheme])- // The slider (and the accessibility overrides) only ever set custom properties.+ // The slider (and the accessibility overrides) only ever set custom properties. Two fills:+ // `--glass-chrome-bg` for text surfaces (never below the readable alpha) and `--glass-control-bg`+ // for the small floating controls (follow the slider to a 0.35 floor) — glassChromeAlphas.useLayoutEffect(() => {const root = document.documentElementif (!glassChrome) {root.style.removeProperty('--glass-chrome-bg')+ root.style.removeProperty('--glass-control-bg')root.style.removeProperty('--glass-t')return}const { panel, rgb, readable } = glassChrome- root.style.setProperty(- '--glass-chrome-bg',- readable !== null && rgb- ? `rgba(${rgb.join(', ')}, ${glassSurfaceAlpha(glassSlider, readable, glassA11y).toFixed(3)})`- : panel- )+ // An unparseable token leaves the chrome opaque (`panel` as is).+ const alphas = readable !== null && rgb ? glassChromeAlphas(glassSlider, readable, glassA11y) : null+ const fill = (a: number | undefined): string => (a !== undefined && rgb ? `rgba(${rgb.join(', ')}, ${a.toFixed(3)})` : panel)+ root.style.setProperty('--glass-chrome-bg', fill(alphas?.text))+ root.style.setProperty('--glass-control-bg', fill(alphas?.control))root.style.setProperty('--glass-t', glassT.toFixed(3))}, [glassChrome, glassSlider, glassA11y, glassT])diff --git a/src/renderer/components/settings/SettingsSidebar.tsx b/src/renderer/components/settings/SettingsSidebar.tsxindex be6c82701..42cc9aa4e 100644--- a/src/renderer/components/settings/SettingsSidebar.tsx+++ b/src/renderer/components/settings/SettingsSidebar.tsx@@ -93,7 +93,8 @@ export function SettingsSidebar({onClick={() => onSelect(s.id)}aria-current={isActive ? 'page' : undefined}className={cn(- 'group flex w-full items-center gap-2.5 rounded-lg border-0 px-3 py-2 text-left text-[13px] outline-none transition-colors',+ // settings-nav-row: Liquid Glass restyles the row fills (styles.css glass block).+ 'settings-nav-row group flex w-full items-center gap-2.5 rounded-lg border-0 px-3 py-2 text-left text-[13px] outline-none transition-colors',isActive? 'bg-white/[0.09] font-medium text-text ring-1 ring-inset ring-white/10': 'bg-panel text-muted hover:bg-white/[0.05] hover:text-text',diff --git a/src/renderer/lib/glassContrast.test.ts b/src/renderer/lib/glassContrast.test.tsindex a29ce8460..92902951f 100644--- a/src/renderer/lib/glassContrast.test.ts+++ b/src/renderer/lib/glassContrast.test.ts@@ -14,6 +14,8 @@ import {parseHex,worstContrast,GLASS_CLEAR_ALPHA,+ GLASS_CONTROL_CLEAR_ALPHA,+ glassChromeAlphas,GLASS_READABLE_TICK,GLASS_TINTED_ALPHA,glassRefraction,@@ -204,6 +206,22 @@ describe('Glass slider (Clear ↔ Tinted)', () => {})})+describe('slider scope: text surfaces floor at Readable, controls at 0.35 (Phase 4)', () => {+ it.each([0.7, 0.745])('readable %s', (readable) => {+ for (let i = 0; i <= 100; i++) {+ const t = i / 100+ const { text, control } = glassChromeAlphas(t, readable)+ expect(text).toBeGreaterThanOrEqual(readable - 1e-9)+ expect(control).toBeGreaterThanOrEqual(GLASS_CONTROL_CLEAR_ALPHA - 1e-9)+ // Right of the tick both follow the slider exactly.+ if (t >= GLASS_READABLE_TICK) expect(text).toBeCloseTo(control, 10)+ }+ expect(glassChromeAlphas(0, readable).text).toBeCloseTo(readable, 10)+ expect(glassChromeAlphas(0, readable).control).toBe(GLASS_CONTROL_CLEAR_ALPHA)+ expect(glassChromeAlphas(0, readable, { reduceTransparency: true, moreContrast: false })).toEqual({ text: 1, control: 1 })+ })+})+describe('accessibility outranks the Glass slider', () => {it('Reduce Transparency is opaque; Increase Contrast pins to Tinted', () => {expect(glassSurfaceAlpha(0, 0.7, { reduceTransparency: true, moreContrast: false })).toBe(1)@@ -245,7 +263,7 @@ describe('Keep blur while moving', () => {it('App applies data-theme and the glass attribute + fill before paint (no transparent first frame)', () => {const src = readFileSync(join(__dirname, '..', 'App.tsx'), 'utf8')- for (const marker of ['document.documentElement.dataset.theme = appTheme', "root.dataset.ntGlass = 'on'", "root.style.setProperty(\n '--glass-chrome-bg'"]) {+ for (const marker of ['document.documentElement.dataset.theme = appTheme', "root.dataset.ntGlass = 'on'", "root.style.setProperty('--glass-chrome-bg'", "root.style.setProperty('--glass-control-bg'"]) {const at = src.indexOf(marker)expect(at, marker).toBeGreaterThan(0)const before = src.slice(0, at)diff --git a/src/renderer/lib/glassContrast.ts b/src/renderer/lib/glassContrast.tsindex d08e4880e..2ede139de 100644--- a/src/renderer/lib/glassContrast.ts+++ b/src/renderer/lib/glassContrast.ts@@ -262,6 +262,10 @@ export function glassChromeAlpha(text: string, panel: string, minRatio = 4.5): n/** Tint alpha at the Clear end: never fully clear, the tint still says where a surface is. */export const GLASS_CLEAR_ALPHA = 0.2+/** Chrome floor at Clear for the small floating CONTROLS (dock, zoom, toolbar buttons, minimap,+ * pills, tab bar): Apple's one published dimming figure ("consider adding a dark dimming layer of+ * 35% opacity", materials.md). At 0.2 their icons vanished over a bright wallpaper (visual QA H4). */+export const GLASS_CONTROL_CLEAR_ALPHA = 0.35/** Tint alpha at the Tinted end (a surface whose readable alpha is higher keeps its own). */export const GLASS_TINTED_ALPHA = 0.95/** Where the Readable tick sits on the track — also the default, so an untouched slider is the@@ -277,11 +281,12 @@ export function resolveGlassSlider(value: unknown): number {: GLASS_READABLE_TICK}-/** The tint alpha of a surface whose readable alpha is `readable`, at slider position `t`. */-export function glassSliderAlpha(t: number, readable: number): number {+/** The tint alpha of a surface whose readable alpha is `readable`, at slider position `t`.+ * `clear` is the surface's alpha at the Clear end (terminal nodes 0.2, controls 0.35). */+export function glassSliderAlpha(t: number, readable: number, clear = GLASS_CLEAR_ALPHA): number {const tinted = Math.max(readable, GLASS_TINTED_ALPHA)if (t <= GLASS_READABLE_TICK) {- return GLASS_CLEAR_ALPHA + ((readable - GLASS_CLEAR_ALPHA) * t) / GLASS_READABLE_TICK+ return clear + ((readable - clear) * t) / GLASS_READABLE_TICK}return readable + ((tinted - readable) * (t - GLASS_READABLE_TICK)) / (1 - GLASS_READABLE_TICK)}@@ -303,9 +308,32 @@ export interface GlassA11y {export const NO_GLASS_A11Y: GlassA11y = { reduceTransparency: false, moreContrast: false }/** The tint alpha a surface actually gets: the slider's, unless an accessibility setting wins. */-export function glassSurfaceAlpha(t: number, readable: number, a11y: GlassA11y = NO_GLASS_A11Y): number {+export function glassSurfaceAlpha(+ t: number,+ readable: number,+ a11y: GlassA11y = NO_GLASS_A11Y,+ clear = GLASS_CLEAR_ALPHA+): number {if (a11y.reduceTransparency) return 1- return glassSliderAlpha(a11y.moreContrast ? 1 : t, readable)+ return glassSliderAlpha(a11y.moreContrast ? 1 : t, readable, clear)+}++/**+ * The two chrome fills (Phase 4 slider scope; HIG: the regular variant for anything with a lot of+ * text). Left of the Readable tick only the small floating CONTROLS follow the slider, down to+ * `GLASS_CONTROL_CLEAR_ALPHA`; TEXT surfaces (Settings, menus, popovers, the palette, dialogs, the+ * sessions sidebar, kanban columns) never go below their readable alpha. Right of the tick both+ * follow the slider. Terminal nodes are neither: they keep their own tint (`glassTint`).+ */+export function glassChromeAlphas(+ t: number,+ readable: number,+ a11y: GlassA11y = NO_GLASS_A11Y+): { text: number; control: number } {+ return {+ text: glassSurfaceAlpha(Math.max(t, GLASS_READABLE_TICK), readable, a11y),+ control: glassSurfaceAlpha(t, readable, a11y, GLASS_CONTROL_CLEAR_ALPHA)+ }}/** Magnetic detent, like a macOS slider's tick marks: a drag within this of the tick lands on it. */diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 917518983..bf05fbfa6 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -13548,8 +13548,21 @@ body.focus-mode .dock:hover {--surface-deep: var(--glass-chrome-bg);--surface-raised: var(--glass-chrome-bg);--surface-overlay: var(--glass-chrome-bg);- --tabbar-bg: var(--glass-chrome-bg);+ --tabbar-bg: var(--glass-control-bg);--glass-edge: rgba(var(--tint-rgb), 0.2);+ /* Highlights on glass (Phase 4): a row lift is the theme's own ink at low alpha, never another+ layer of the fill — re-stacking `--panel-header` on its own panel read as a darker, or+ invisible, "highlight" (visual QA H1/H2). Selection that is THE choice on a surface (the+ palette's keyboard row, the Settings section) is an accent wash instead (HIG+ focus-and-selection: selected list rows take the accent). */+ /* Secondary labels on glass (visual QA M3): tertiary (0.25) measured 2.2–2.9:1 on glass at+ Readable, and HIG warns against the lowest label levels on thin materials, so tertiary takes+ secondary's value and secondary is raised. Still no 4.5:1 promise for --muted (see CLAUDE.md). */+ --muted: rgba(var(--tint-rgb), 0.7);+ --muted-2: var(--muted);+ --glass-lift-hover: rgba(var(--tint-rgb), 0.1);+ --glass-lift: rgba(var(--tint-rgb), 0.14);+ --glass-select: color-mix(in srgb, var(--accent) 30%, transparent);/* The Glass slider (App.tsx sets the live values inline; these are the Readable-tick defaults):`--glass-t` 0 = Clear … 1 = Tinted.Clearer glass blurs a little less and saturates a little more, and refracts at its rim@@ -13564,6 +13577,16 @@ body.focus-mode .dock:hover {--glass-refract: url(#nt-refract);--glass-blur: blur(calc(16px + 12px * var(--glass-t))) saturate(calc(200% - 55% * var(--glass-t)))var(--glass-refract);+ /* Small controls left of the tick: the backdrop under them is DIMMED (dark theme) or brightened+ (light theme) as the fill thins, toward Apple's "dark dimming layer" for bright content+ (materials.md). 1 at the tick and right of it; `--glass-control-dim` at Clear. The fill alone+ (0.35) left the tab label at 1.98:1 over the Sunrise gradient. It moves backdrop pixels only. */+ --glass-control-dim: 0.7;+ --glass-control-blur: blur(calc(16px + 12px * var(--glass-t))) saturate(calc(200% - 55% * var(--glass-t)))+ brightness(calc(1 - (1 - var(--glass-control-dim)) * max(0, 1 - var(--glass-t) / 0.7))) var(--glass-refract);+ /* Text surfaces never frost less than at the Readable tick (0.7), whatever the slider says. */+ --glass-text-blur: blur(calc(16px + 12px * max(var(--glass-t), 0.7)))+ saturate(calc(200% - 55% * max(var(--glass-t), 0.7))) var(--glass-refract);/* Terminal nodes frost 15% less than the chrome (the user asked for less blur under the terminalwindows): same curve, radius × 0.85, same saturation and refraction. They also FLATTEN thebackdrop's luminance (HIG: regular glass "blurs and adjusts the luminosity"): a blurred photo@@ -13576,35 +13599,67 @@ body.focus-mode .dock:hover {saturate(calc(200% - 55% * var(--glass-t))) contrast(calc(1 - var(--glass-t))) var(--glass-refract);}-/* Outermost chrome: fill + blur. */+/* Outermost chrome: fill + blur, in two groups (Phase 4 slider scope, lib/glassContrast.ts+ `glassChromeAlphas`). TEXT surfaces take `--glass-chrome-bg`, which never drops below the+ readable alpha, and a blur that never goes below the Readable tick's (`--glass-text-blur`) — HIG:+ the regular variant for anything with a lot of text. The small floating CONTROLS take+ `--glass-control-bg`, which follows the slider down to Apple's 0.35 dimming figure at Clear. */:root[data-nt-glass='on']:is(- .tabbar,- .dock,.ctx-menu,.tab-menu,.announce-banner,.update-card,- .controls-cluster > button,.confirm,.logpanel,.shortcuts,.palette,- .react-flow__controls,- .react-flow__minimap.minimap,.resume-card,- .sysres-pill,.usage-popover,.sessmem-panel,.sessions-sidebar,.phone-pair,- .focus-exit,.dictation,- .nt-settings+ .nt-settings,+ .kanban-header,+ .kanban-col,+ .kanban-modal) {background: var(--glass-chrome-bg) !important;- -webkit-backdrop-filter: var(--glass-blur);- backdrop-filter: var(--glass-blur);+ -webkit-backdrop-filter: var(--glass-text-blur);+ backdrop-filter: var(--glass-text-blur);+}+:root[data-nt-glass='on']+ :is(+ .tabbar,+ .dock,+ .controls-cluster > button,+ .react-flow__controls,+ .react-flow__minimap.minimap,+ .sysres-pill,+ .usage-pill,+ .usage-refresh,+ .focus-exit,+ .sessions-icon-cluster button+ ) {+ background: var(--glass-control-bg) !important;+ border-color: var(--glass-edge);+ -webkit-backdrop-filter: var(--glass-control-blur);+ backdrop-filter: var(--glass-control-blur);+}+:root[data-nt-glass='on'][data-theme='light'] {+ --glass-control-dim: 1.3;+ --muted: rgba(var(--tint-rgb), 0.8);+}+/* The pills' own hovers are opaque literals (`rgba(44,44,46,.95)` is a dark-theme colour): on+ glass a hover is a neutral lift over the same fill. */+:root[data-nt-glass='on'] .usage-refresh {+ color: var(--text);+}+:root[data-nt-glass='on'] :is(.sysres-pill, .usage-pill, .usage-refresh):hover {+ background:+ linear-gradient(var(--glass-lift-hover), var(--glass-lift-hover)),+ var(--glass-control-bg) !important;}/* Rim light: a 1px specular edge, brightest at the top-left and faint along the rest, drawn as a@@ -13639,15 +13694,53 @@ body.focus-mode .dock:hover {/* Nested inside a blurred container (or unknown nesting): the fill only. *//* .ctx-popover opens INSIDE a terminal node (the context meter), which is already blurred. */-:root[data-nt-glass='on']- :is(.dock-menu, .dock-menu__sub, .usage-refresh, .sessions-icon-cluster button, .ctx-popover) {+:root[data-nt-glass='on'] :is(.dock-menu, .dock-menu__sub, .ctx-popover) {background: var(--glass-chrome-bg) !important;}+/* The sessions sidebar opens over its own toggle (same corner); through translucent glass the+ toggle's glyph ghosted above "Sessions" (visual QA M5). The sidebar's × closes it. */+:root[data-nt-glass='on'] .canvas-root:has(.sessions-sidebar) .sessions-icon-cluster {+ visibility: hidden;+}/* The active tab normally takes the canvas colour and flares into it; over a wallpaper that is a- black tab. It stacks one more layer of the fill instead, and the flares go. */+ black tab. It is a neutral lift on the bar instead (a second layer of the fill read as a darker+ slab, visual QA L7), and the flares go. */:root[data-nt-glass='on'] .tab.active {- background: var(--glass-chrome-bg);+ background: var(--glass-lift);+}++/* Input wells: the default `bg-bg` well is the opaque page colour, which read as a hole punched in+ the frosted page (visual QA M4). On glass it is a sink (dark) or a lift (light) of the page with a+ hairline — each moves AWAY from the ink, so the field's text keeps at least the page's contrast. */+:root[data-nt-glass='on'] :is(input, select, textarea).bg-bg {+ background: rgba(0, 0, 0, 0.22);+ border-color: var(--glass-edge);+}+:root[data-nt-glass='on'][data-theme='light'] :is(input, select, textarea).bg-bg {+ background: rgba(255, 255, 255, 0.55);+}++/* Scroll edge effect (HIG liquid-glass: content fades where it meets the edge): the palette's+ last row was cut hard at the bottom (visual QA L3). The extra padding lets the last row clear the+ fade at the end of the scroll. */+:root[data-nt-glass='on'] .palette__list {+ padding-bottom: 24px;+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);+ mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);+}++/* Row highlights: every hover/selected row that painted `--panel-header` (= the fill again). */+:root[data-nt-glass='on'] :is(.ctx-item, .tab-menu button, .dock-menu button, .dock-menu__sub button):hover:not(:disabled),+:root[data-nt-glass='on'] :is(.dock-menu__row:hover, .dock-menu__row:focus-within, .settings-nav-row:hover) {+ background: var(--glass-lift);+}+:root[data-nt-glass='on'] .settings-nav-row {+ background: transparent;+}+:root[data-nt-glass='on'] :is(.palette__item.active, .settings-nav-row[aria-current='page']) {+ background: var(--glass-select);+ box-shadow: none;}:root[data-nt-glass='on'] .tab.active::after {display: none;@@ -13706,6 +13799,57 @@ body.focus-mode .dock:hover {border-top-color: var(--state-unread) !important;}+/* ---- Kanban under Liquid Glass (PLAN: "we have to liquid glass the kanban") --------------------+ The overlay paints the SAME fixed wallpaper as the canvas (inline, from KanbanView /+ GlobalKanbanView: `background-attachment: fixed` + cover lines it up with `.canvas-root`'s), so+ it stays OPAQUE to the canvas underneath — the covered-canvas animation gate still holds and no+ node bleeds through. Columns are text-surface glass (listed above). Cards are a neutral lift on+ the column WITHOUT a blur of their own (no glass on glass). Headers are monochrome; status chips+ are ink on a wash of their semantic hue; the drop target and reorder line are neutral ink. */+:root[data-nt-glass='on'] .kanban-header {+ border-bottom-color: var(--glass-edge);+}+:root[data-nt-glass='on'] .kanban-col {+ border-color: var(--glass-edge);+}+:root[data-nt-glass='on'] :is(.kanban-col__dot, .kanban-header__dot) {+ background: transparent !important;+ box-shadow: inset 0 0 0 1.5px var(--muted);+}+:root[data-nt-glass='on'] .kanban-card {+ background: var(--glass-lift-hover);+ border-color: var(--glass-edge);+}+:root[data-nt-glass='on'] .kanban-card:hover {+ background: var(--glass-lift);+}+:root[data-nt-glass='on'] .kanban-col--drop {+ border-color: var(--text);+ background:+ linear-gradient(var(--glass-lift-hover), var(--glass-lift-hover)),+ var(--glass-chrome-bg) !important;+ box-shadow: 0 0 0 1px var(--text);+}+:root[data-nt-glass='on'] .kanban-card--drop-before::before,+:root[data-nt-glass='on'] .kanban-card--drop-after::after {+ background: var(--text);+ box-shadow: none;+}+:root[data-nt-glass='on'] .kanban-badge--running {+ color: var(--state-working);+}+:root[data-nt-glass='on'] :is(.kanban-badge--running, .kanban-badge--needs, .kanban-badge--dropped) {+ -webkit-text-fill-color: var(--text);+ background: color-mix(in srgb, currentColor 24%, transparent);+ box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 55%, transparent);+}+/* The card modal's terminal: the same glass as a terminal node (ModalTerminal sets the+ `--term-glass-*` tint inline). The modal itself is text-surface glass (listed above), so the+ tint needs no blur of its own; the tint alone carries its foreground's 4.5:1. */+:root[data-nt-glass='on'] .kanban-modal__termwrap--glass {+ background: var(--term-glass-bg);+}+/* Minimap: node rectangles are painted in the node's own colour (an inline style, hence!important), which is exactly the accent Liquid Glass removes. They become translucent ink —the theme's own `--tint-rgb`, so brown on the light theme and white on the dark one — with the@@ -13713,7 +13857,7 @@ body.focus-mode .dock:hover {colours: they are state, not decoration. The mask dims outside the viewport with the samechrome fill the map sits on. */:root[data-nt-glass='on'] {- --minimap-mask: var(--glass-chrome-bg);+ --minimap-mask: var(--glass-control-bg);}:root[data-nt-glass='on'] .minimap .react-flow__minimap-node {fill: rgba(var(--tint-rgb), 0.3) !important;@@ -13776,6 +13920,8 @@ body.focus-mode .dock:hover {:root[data-nt-glass='on'] {--glass-blur: none;--glass-term-blur: none;+ --glass-text-blur: none;+ --glass-control-blur: none;}:root[data-nt-glass='on'] :is(.term-node, .files-node, .loop-node, .subagent-node, .trigger-node, .dino-node)::before {display: none;diff --git a/src/renderer/styles.liquid-glass.test.ts b/src/renderer/styles.liquid-glass.test.tsindex 7cb26819f..4c17cb1ed 100644--- a/src/renderer/styles.liquid-glass.test.ts+++ b/src/renderer/styles.liquid-glass.test.ts@@ -51,11 +51,36 @@ describe('Liquid Glass stylesheet', () => {it('never blurs a container nested in a blurred one', () => {const blurred = gated('').filter((r) => /backdrop-filter:\s*var\(--glass-blur\)/.test(r.body))- for (const nested of ['.dock-menu', '.dock-menu__sub', '.usage-refresh', '.sessions-icon-cluster']) {+ for (const nested of ['.dock-menu', '.dock-menu__sub', '.kanban-card', '.kanban-modal__termwrap']) {expect(blurred.some((r) => r.selector.includes(nested))).toBe(false)}})+ it('slider scope: text surfaces take the readable-floored fill, small controls the slider fill', () => {+ const outer = (needle: string): Rule | undefined =>+ gated(needle).find((r) => /backdrop-filter:/.test(r.body) && r.selector.includes(':is('))+ for (const text of ['.nt-settings', '.palette', '.ctx-menu', '.tab-menu', '.sessions-sidebar', '.confirm', '.usage-popover', '.kanban-col', '.kanban-modal']) {+ expect(outer(text)?.body, text).toMatch(/var\(--glass-chrome-bg\)[\s\S]*var\(--glass-text-blur\)/)+ }+ for (const control of ['.dock', '.tabbar', '.react-flow__controls', '.react-flow__minimap', '.usage-pill', '.sysres-pill', '.usage-refresh', '.controls-cluster > button', '.sessions-icon-cluster button']) {+ expect(outer(control)?.body, control).toMatch(/var\(--glass-control-bg\)[\s\S]*var\(--glass-control-blur\)/)+ }+ })++ it('row highlights on glass never re-stack a panel token (visual QA H1/H2)', () => {+ for (const row of ['.palette__item.active', '.settings-nav-row', '.ctx-item', '.tab-menu button', '.tab.active']) {+ const hits = gated(row).filter((r) => /background:/.test(r.body))+ expect(hits.length, row).toBeGreaterThan(0)+ for (const r of hits) expect(r.body, row).not.toMatch(/--panel|--glass-chrome-bg/)+ }+ })++ it('kanban cards are a lift without their own blur (no glass on glass)', () => {+ const card = gated('.kanban-card').find((r) => r.selector === `${GATE} .kanban-card`)+ expect(card?.body).toMatch(/background:\s*var\(--glass-lift-hover\)/)+ expect(gated('.kanban-card').some((r) => /backdrop-filter/.test(r.body))).toBe(false)+ })+it('draws minimap nodes in neutral ink, not node colour, and keeps status strokes', () => {const fill = gated('.react-flow__minimap-node').find((r) => r.selector.endsWith('.react-flow__minimap-node'))expect(fill?.body).toMatch(/fill:\s*rgba\(var\(--tint-rgb\),[^)]*\)\s*!important/)diff --git a/src/renderer/styles.theme.test.ts b/src/renderer/styles.theme.test.tsindex 4ccc1fb7a..d149ac61f 100644--- a/src/renderer/styles.theme.test.ts+++ b/src/renderer/styles.theme.test.ts@@ -111,6 +111,7 @@ describe('every CSS variable resolves', () => {'--term-glass-fg','--term-glass-chip-wash', // TerminalNode, status-chip wash per theme (glassChipWash)'--glass-chrome-bg', // App.tsx, Liquid Glass chrome fill (lib/glassContrast.ts glassChromeAlpha)+ '--glass-control-bg', // App.tsx, Liquid Glass small-control fill (glassChromeAlphas)'--glass-fill', // GlassSlider, the slider value (fills the track)'--glass-tick', // GlassSlider, the Readable tick position (the notch)'--peer-color', // presence chips, per peer