codeburn/windows/src
iamtoruk 804f665a84 feat(windows): the Capacity Dock follows the size setting
The rail was fixed at the mac's smallest scale because both halves of its
geometry hard-coded the numbers that scale produces. Now the page and the
Rust side each rebuild every metric from the stored scale, with the mac's
rounding, so the two stay in step at any size between 60 and 120 percent.

dockGeometry.ts exports a cached metrics(scale) instead of a frozen M, and
dock.rs grows a Metrics struct with the same base values. The bubble keeps
the mac's floor of 0.9: below that its type stops being readable, so a
60 percent rail still gets a 315 px card. What a stylesheet rule needs
rather than an element (the row gap, the gauge box, the percent type, the
bubble's spacings) arrives as a --dock-* variable on .dock.

Writing a dock preference now re-reads the geometry in Rust and moves the
window, because the page can only paint inside the window it is given.
The settings section says appearance and gauge shape are still stored and
unread; size no longer is.
2026-09-01 21:09:02 -07:00
..
components feat(windows): usage refresh, terminal and daily budget settings 2026-09-01 20:39:05 -07:00
lib feat(windows): usage refresh, terminal and daily budget settings 2026-09-01 20:39:05 -07:00
settings feat(windows): the Capacity Dock follows the size setting 2026-09-01 21:09:02 -07:00
App.tsx feat(windows): usage refresh, terminal and daily budget settings 2026-09-01 20:39:05 -07:00
dock.css feat(windows): the Capacity Dock follows the size setting 2026-09-01 21:09:02 -07:00
Dock.tsx feat(windows): the Capacity Dock follows the size setting 2026-09-01 21:09:02 -07:00
dockGeometry.ts feat(windows): the Capacity Dock follows the size setting 2026-09-01 21:09:02 -07:00
main.tsx feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
providerIcons.tsx feat(windows): provider panes gain config directories, cadence and API keys 2026-09-01 20:00:42 -07:00
Settings.tsx feat(windows): provider panes gain config directories, cadence and API keys 2026-09-01 20:00:42 -07:00
styles.css feat(windows): usage refresh, terminal and daily budget settings 2026-09-01 20:39:05 -07:00