mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
The Windows dock now mirrors CapacityDockView.swift at the mac's 0.6 default scale: the graphite gradient surface with the concave edge flare, a provider glyph inside a recessed ring, severity colours (green, yellow from 50, orange from 75, red from 90) on ring, percent and bars, warm off-white text, and the tailed detail bubble with the mac typography. This also settles the open severity-colour question in favour of the mac behaviour. Interaction follows CapacityDockController and CapacityDockInteractionState: the resting rail shows the preferred provider; hovering expands it after 80 ms and collapses 180 ms after leaving; hovering a row shows its bubble after 180 ms and dismisses it 240 ms after the row unless the pointer is on the bubble; clicking a row pins the rail and makes that provider the preferred one, persisted in windows-dock.json; Escape dismisses; right-click opens a native menu with Refresh and Hide Capacity Dock. One transparent window hosts both rail and bubble. dock.rs owns the geometry as a pure layout function with unit tests, applies size and position in a single SetWindowPos so the rail never flashes between two updates, and returns window-relative frames the page paints into after measuring the bubble's natural height. Every window metric stays a whole pixel. Out of scope for v1, as before: dragging, edge choice and scale. |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| tauri.conf.json | ||