Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

refactor(desktop): drive platform CSS from contract variables

5 months ago

4f86aea
Authored
mweinbach4/30/2026, 2:47:52 PM
Move design-invariant titlebar/drag-strip rules to a shared platform
stylesheet and replace hardcoded pixel values in darwin/win32/linux
overrides with CSS variables fed by the platform chrome contract.

- Add styles/platform/shared.css that pulls .app-topbar--frame height,
  .app-window-drag-strip height, and the CSS-blur disable toggle from
  --platform-* variables set by App.tsx.
- Replace 48px and 2.375rem magic numbers in darwin/win32/linux CSS
  with var(--platform-titlebar-height) and caption reserves with
  var(--platform-caption-button-reserve).
- Add docs/platform-chrome.md describing the contract, the IPC wiring,
  the renderer hook, and how to add new platform tweaks.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Parent5f0909a

6 files changed
  • apps/desktop/docs/platform-chrome.md+101−0
  • apps/desktop/src/styles.css+1−0
  • apps/desktop/src/styles/platform/darwin.css+0−16
  • apps/desktop/src/styles/platform/linux.css+0−1
  • apps/desktop/src/styles/platform/shared.css+27−0
  • apps/desktop/src/styles/platform/win32.css+6−15