shell: custom window title bar in the Matou language; hide the native menu bar #256

Closed
opened 2026-08-02 00:01:00 +00:00 by ben · 1 comment
Owner

What's wrong

The operator app window wears the stock OS frame: a native title bar labelled "OurCloud" plus the default Electron application menu (File / Edit / View / Window / Help). It looks like a generic Electron shell, not a Mātou surface.

What I expected

Ben's ruling from the Phase A rehearsal: the app draws its own title bar (like matou-app's, whose look he wants), with the native menu bar hidden. The custom bar should be colourable — its colours ride the kit's brand/presentation tokens so it wears the Mātou language (and follows a re-pointed community palette like every other surface).

Steps to reproduce

  1. Launch the operator app on Linux.
  2. Observe the native title bar and the File/Edit/View/Window/Help menu above the surface.

Additional context

matou-app (sibling project, same machine) is the reference implementation and the look Ben wants: a frameless window; the renderer draws a slim title bar with a drag region, the app title, and minimize / maximize / close buttons that call window-control IPC handlers in the main process; page layouts subtract the bar's height via a CSS variable. Port that pattern into this app's shell posture and style the bar from --oc-* tokens (this is new app chrome — record the design decision as an ADR/DDR in the usual sequence). Native menu: hidden entirely.

Reported during the #183 Phase A rehearsal.

## What's wrong The operator app window wears the stock OS frame: a native title bar labelled "OurCloud" plus the default Electron application menu (File / Edit / View / Window / Help). It looks like a generic Electron shell, not a Mātou surface. ## What I expected Ben's ruling from the Phase A rehearsal: the app draws its **own title bar** (like matou-app's, whose look he wants), with the native menu bar hidden. The custom bar should be colourable — its colours ride the kit's brand/presentation tokens so it wears the Mātou language (and follows a re-pointed community palette like every other surface). ## Steps to reproduce 1. Launch the operator app on Linux. 2. Observe the native title bar and the File/Edit/View/Window/Help menu above the surface. ## Additional context matou-app (sibling project, same machine) is the reference implementation and the look Ben wants: a frameless window; the renderer draws a slim title bar with a drag region, the app title, and minimize / maximize / close buttons that call window-control IPC handlers in the main process; page layouts subtract the bar's height via a CSS variable. Port that pattern into this app's shell posture and style the bar from `--oc-*` tokens (this is new app chrome — record the design decision as an ADR/DDR in the usual sequence). Native menu: hidden entirely. Reported during the #183 Phase A rehearsal.
Author
Owner

Done in a99be63 (on origin/main).

The operator app now draws its own window title bar in the Mātou language and hides the native menu entirely (Ben's #183 Phase A ruling, matou-app's precedent). Recorded as DDR 0123.

What shipped:

  • electron-main: frameless window (frame: false), Menu.setApplicationMenu(null), and three window-control IPC handlers (ourcloud:window-{minimize,maximize,close}) acting on the source BrowserWindow (maximize toggles restore).
  • electron-preload: hands the renderer windowControls on the boot bridge, beside the existing leave-the-app effects.
  • app/src/components/shell/TitleBar.vue (new): a slim bar — drag region + accent mark + app title on the left, minimise/maximise/close on the right (a data-action contract). Colours are --oc-* tokens only (ground --oc-background, mark --oc-accent, serif title on --oc-ink, --oc-line hairline), so it wears the Mātou language and re-themes with a re-pointed community palette (ADR 0122 / DDR 0007).
  • AppShell mounts the bar once above every surface; the surface subtracts the bar height via --oc-titlebar-height. windowControls is threaded production/dev → boot → bootstrap → AppShell, with a no-op fallback off-shell (src/lib/windowControls.ts).

Guards (the #257 boot-guard shape): app/tests/unit/titleBarShell.test.ts (frameless + hidden menu + IPC wiring), titleBar.test.ts (bar title + controls), and an appShell.test.ts assertion that the bar mounts above every surface and drives. Full app suite green (boot.test.ts needs go on PATH, an unrelated sandbox env limitation).

Done in a99be63 (on origin/main). The operator app now draws its own window title bar in the Mātou language and hides the native menu entirely (Ben's #183 Phase A ruling, matou-app's precedent). Recorded as **DDR 0123**. **What shipped:** - `electron-main`: frameless window (`frame: false`), `Menu.setApplicationMenu(null)`, and three window-control IPC handlers (`ourcloud:window-{minimize,maximize,close}`) acting on the source `BrowserWindow` (maximize toggles restore). - `electron-preload`: hands the renderer `windowControls` on the boot bridge, beside the existing leave-the-app effects. - `app/src/components/shell/TitleBar.vue` (new): a slim bar — drag region + accent mark + app title on the left, minimise/maximise/close on the right (a `data-action` contract). Colours are `--oc-*` tokens only (ground `--oc-background`, mark `--oc-accent`, serif title on `--oc-ink`, `--oc-line` hairline), so it wears the Mātou language and re-themes with a re-pointed community palette (ADR 0122 / DDR 0007). - `AppShell` mounts the bar once above every surface; the surface subtracts the bar height via `--oc-titlebar-height`. `windowControls` is threaded production/dev → boot → bootstrap → AppShell, with a no-op fallback off-shell (`src/lib/windowControls.ts`). **Guards (the #257 boot-guard shape):** `app/tests/unit/titleBarShell.test.ts` (frameless + hidden menu + IPC wiring), `titleBar.test.ts` (bar title + controls), and an `appShell.test.ts` assertion that the bar mounts above every surface and drives. Full app suite green (`boot.test.ts` needs `go` on PATH, an unrelated sandbox env limitation).
ben closed this issue 2026-08-02 01:24:08 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#256
No description provided.