layout: replace dock with simple titlebar and panel row

This commit is contained in:
2026-11-15 10:08:24 +07:00
parent 33f8856bc2
commit 2d85db215b
13 changed files with 836 additions and 2442 deletions
+17 -13
View File
@@ -45,8 +45,8 @@ Gaps surfaced by the signed comparison; ordered by signed's usage.
overlay, per-view config overrides (line height, gutter visibility).
- [ ] **Pickers** — Calendar / DatePicker, TimeField, ColorPicker (decide at
unit time).
- [ ] **Layout follow-ups** — persistence, pane zoom, bottom dock,
collapse-to-edge; each waits for a real consumer.
- [ ] **Layout follow-ups** — column persistence, drag-to-reorder sub panel
columns; each waits for a real consumer.
- [ ] **Platform screenshot passes** — a Linux run (Omarchy / KDE / GNOME) and
the first Windows hardware build, side by side with macOS.
@@ -217,18 +217,22 @@ Gaps surfaced by the signed comparison; ordered by signed's usage.
### layout (`crates/layout`)
- [x] ResizeHandle
- [x] Shell — left/right sidebar regions + center, application-owned
`LayoutState`
- [x] Window frame — client-side decorations under `Decorations::Client`
- [x] Dock — pane tree, panel registry, tab context menus
- [x] Drag-to-split — `PanelDrag` payload, edge + center drop zones
- [x] Titlebar + window controls — app-owned window dragging, per-platform
buttons, `Theme::titlebar_height`
- [x] Sidebar auto-open — `PanelDescriptor::right_sidebar` + `DockSidebar`
- [x] Resizable group — stacked panes with drag dividers outside the dock,
per-pane floors, double-click reset, keyboard steps
- [x] Titlebar + window controls — app-owned window dragging from the bar
and its tab bar (`prefix` / `suffix` control clusters opt out so a
press on a control never starts a drag; Windows keeps the tab bar
clickable instead of draggable), macOS pad leads, per-platform
trailing buttons, `Theme::titlebar_height`
- [x] Shell — the titlebar over the panel row in the window frame, hosting
the toast and alert overlays
- [x] Panel — island layout on the muted app background: the main island
fills the window and can split once into two half-width islands with
a drag divider between them (double-click restores the half split)
- [x] Resizable group — stacked panes with drag dividers, per-pane floors,
double-click reset, keyboard steps
### gallery (`examples/gallery`)
- [x] Component browser — the shell with the catalog in its sidebar, every
element a dock panel
- [x] Component browser — the catalog menu in the titlebar's + menu, every
demo a tab in the titlebar's tab strip over the panel row; the welcome
tab opens tabs and sub panel columns