Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
fix(macos): align window title and control edges
Abdurrahman Fakhrulc603c9da37df
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex 8d2cfefa..6b058935 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -8,6 +8,7 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh**Fixed**+- `macos` align window title and control edges- `appshell` inherit macOS menu colors without extra CSS- `appshell` align macOS menu symbol colors- `macos` unify shared menu glass materialdiff --git a/docs/PROGRESS.md b/docs/PROGRESS.mdindex f0cb6690..3a833bfb 100644--- a/docs/PROGRESS.md+++ b/docs/PROGRESS.md@@ -1,3 +1,7 @@+## 2026-10-08: Align shared macOS window title and control edges++The open Figma composed window Title uses SF Pro Bold 13px with a 15px line height; MSO rendered Semibold with 19.5px leading. Close and Minimize properties confirm the existing 14px colors/geometry and a 0.5px inner black stroke at 45%, rather than MSO's 35%. The shared macOS window title now uses the reference weight/leading and its control CSS uses the matching edge. All macOS app windows consume that one branch; Windows retains its separate caption and mobile/dashboard use WindowContent directly. Focus gray, hover/focus symbols, 24px targets, close guards, window/store actions and theme colors remain intact. Browser checks measure actual title typography in both themes and the rendered control edge alongside existing maximize, restore, drag, resize, minimize, keyboard and shell-switch journeys. No app-specific title override, configuration or dependency was added.+## 2026-10-08: Match macOS menu symbols to their labelsThe open Figma menu uses the same primary color for normal labels and symbols, with white symbols on selection. MSO context icons previously kept the generic blue accent and labels overrode the macOS palette. Context/submenu rows now inherit the existing macOS primary color, and their shared row body leaves icons inheriting the row alongside existing dropdown icons, checkmarks and arrows. Destructive rows retain their existing red token. Windows and touch-shell colors keep the shared component's previous behavior. Browser checks compare actual symbol/label colors in both themes and after a Windows round trip, and exercise the widget consumer's Medium checkmark and Remove widget row without invoking removal. The existing CSS bundle cap rejected an extra rule/utility, so the final implementation removes macOS-only color overrides without adding CSS. No budget, selection contract, action or dependency changed.diff --git a/frontend/slices/appshell/components/shells/macos/macos-shell.css b/frontend/slices/appshell/components/shells/macos/macos-shell.cssindex ae81e5d0..efdd1b33 100644--- a/frontend/slices/appshell/components/shells/macos/macos-shell.css+++ b/frontend/slices/appshell/components/shells/macos/macos-shell.css@@ -80,10 +80,11 @@background: var(--mac-window);border-bottom: .5px solid var(--mac-divider);color: var(--mac-title);+ line-height: 15px;}.macos-light {background: var(--mac-light);- box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .35);+ box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .45);}[data-focused="false"] .macos-light { background: var(--mac-inactive-light); }.macos-light-button:hover .macos-light,diff --git a/frontend/slices/appshell/components/window.tsx b/frontend/slices/appshell/components/window.tsxindex 0c60c5e3..1966f0a3 100644--- a/frontend/slices/appshell/components/window.tsx+++ b/frontend/slices/appshell/components/window.tsx@@ -138,7 +138,7 @@ export const Window = memo(function Window({ id, variant = "macos" }: { id: WinIonMinimize={beginMinimize}onMaximize={() => toggleMaximize(id)}/>- <div className="macos-window-title pointer-events-none flex-1 truncate text-[13px] font-semibold">+ <div className="macos-window-title pointer-events-none flex-1 truncate text-[13px] font-bold">{title}</div></div>diff --git a/frontend/slices/appshell/design/macos/design.md b/frontend/slices/appshell/design/macos/design.mdindex 8878d823..12895f96 100644--- a/frontend/slices/appshell/design/macos/design.md+++ b/frontend/slices/appshell/design/macos/design.md@@ -10,6 +10,7 @@ Source: [macOS 27 Examples](https://www.figma.com/design/f3ivRnEohVvr87qszwuQiw/- Browser inspection of the active Glass Effect confirms a 12px radius and 0.5px Plus Lighter inner edge; its fallback shadow is 0 8px 48px at 25%. Native refraction/dispersion are approximated with the existing blur token, saturation and a thin CSS highlight. The shared macOS rule owns material for dropdown, context and submenu panels; reduced glass disables both standard and WebKit filters. Existing readable light/dark backgrounds, geometry and targets stay authoritative.- Browser inspection of the menu checkmark confirms the primary label color (#1A1A1A). Context/submenu labels inherit the shared macOS theme color; the shared context row body leaves icons inheriting their row color alongside existing dropdown icons, checkmarks and arrows, including white selection and the existing destructive token. Rendered widget menus verify the shared consumer and preserve the Medium checkmark.- Combined menus retain A's readable shortcut text and selection contrast. Coarse-pointer rows remain at least 44px; Windows and Dashboard metrics retain their existing values.+- Browser inspection of the composed window Title `4376:55456` confirms SF Pro Bold 13px with a 15px line height. The shared macOS title uses that weight/rhythm. Close and Minimize properties confirm 14px circles and a 0.5px inner black stroke at 45%; existing colors and 24px hit areas remain authoritative. Windows keeps its separate caption branch.- Existing Radix controls, shell store, app registry and docking interactions remain authoritative.- The Examples page has no dock specimen. Preserve existing artwork; reserve the full hover-growth pool so controls stay reachable.- macOS CSS loads with its lazy shell component. No global palette replacement or extra design dependency.diff --git a/scripts/e2e/macos-figma.mjs b/scripts/e2e/macos-figma.mjsindex d4aa03a9..d5dbc4af 100644--- a/scripts/e2e/macos-figma.mjs+++ b/scripts/e2e/macos-figma.mjs@@ -14,6 +14,7 @@ const browser = await chromium.launch({ headless: true });const results = [];const screenshots = [];let page;+const titleStyle = el => { const s = getComputedStyle(el); return [s.fontSize, s.fontWeight, s.lineHeight]; };async function shot(name) {const file = path.join(dir, name + ".png");await page.screenshot({ path: file });@@ -57,6 +58,8 @@ try {expect(await win.evaluate(el => getComputedStyle(el).borderRadius)).toBe("16px");for (const b of await win.locator(".macos-light-button").all()) expect((await b.boundingBox()).width).toBe(24);expect((await win.locator(".macos-light").first().boundingBox()).width).toBe(14);+ expect(await win.locator(".macos-window-title").evaluate(titleStyle)).toEqual(["13px", "700", "15px"]);+ expect(await win.locator(".macos-light").first().evaluate(el => getComputedStyle(el).boxShadow)).toContain("rgba(0, 0, 0, 0.45)");});await expect(page.getByText(/Loading settings/)).toHaveCount(0);await shot("light-window");@@ -105,6 +108,7 @@ try {await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))));await shot("dark-window");await check("settled dark settings content contrast", async () => {+ expect(await win.locator(".macos-window-title").evaluate(titleStyle)).toEqual(["13px", "700", "15px"]);const axe = await new AxeBuilder({ page }).include('[data-window][data-app="os-settings"]').withRules(["color-contrast"]).analyze();expect(axe.violations.map(v => ({ id: v.id, targets: v.nodes.map(n => ({ target: n.target, summary: n.failureSummary })) }))).toEqual([]);});