codeburn/windows/src-tauri/src
iamtoruk f8fbcc207c feat(windows): tint the tray flame by quota, and fill out its menu
What the tray says without being clicked, brought in line with the mac status
item. The flame takes the worst connected provider's quota severity (yellow,
orange, red; untinted while there is nothing to say), and falls back to yellow
when today's spend is over the daily budget, in that order. The logo is
recoloured in Rust from the embedded artwork, alpha untouched so only the
colour moves; no new dependency, since the tray feature already pulls in a PNG
decoder. The daily budget is read from the CLI's own config.json, where
package C's settings UI will write it; absent or zero means no budget, which
is the default today.

The badge figure and tooltip are written to %LOCALAPPDATA% on every refresh
and put back at startup while under ten minutes old, from the mac's
MenubarStatusCache, so a relaunch no longer blanks the tray for a CLI round
trip. The frontend stopped clearing the badge before its first payload, which
would otherwise wipe what was just restored.

The right-click menu gains the mac's disabled usage row at the top ("Today ·
$X · N calls"), Settings..., Capacity Dock Settings... and About CodeBurn.
The three open the popover on a panel for now; package C turns them into deep
links to the settings window.
2026-09-01 17:28:10 -07:00
..
autostart.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
cli.rs feat(windows): Capacity Dock, an edge-docked quota rail 2026-09-01 13:50:56 -07:00
config.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
dock.rs fix(windows): keep dock rows on the anchored end and the flare on a matching edge 2026-09-01 16:31:41 -07:00
fx.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
lib.rs feat(windows): tint the tray flame by quota, and fill out its menu 2026-09-01 17:28:10 -07:00
main.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
plan.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
tray_badge.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
tray_linux.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
tray_status.rs feat(windows): tint the tray flame by quota, and fill out its menu 2026-09-01 17:28:10 -07:00