mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-10-23 23:29:35 +00:00
The popover's quota warning painted its text in the same system yellow, orange or red as its 12% pill. In light mode that measured 1.23:1 to 1.43:1 for yellow and at best 3.04:1 for red, and dark-mode red fell to 3.33:1. The pill keeps its hue; the text and its glyph now take a per-appearance foreground from QuotaWarningPalette that measures at least 5.29:1, and a test holds every severity at WCAG AA against the pill composited over both ends of the popover's background in both appearances. The sentence named no window. AggregateQuotaStatus reduced each provider to its worst window and kept only the percentage, so "Claude 70% of quota used" was the 5-hour limit read next to a weekly 34%, and looked wrong. Each warning now carries the winning window's label and reset, and the row reads "Claude · 5-hour 71% · resets in 3h 12m" with the Capacity Dock's countdown, one line per provider. The countdown is left off when there is no reset time or it has passed, and "over limit" is kept for a window at or past 100% instead of everything the danger band (90% and up) covers. The windows compared, the 70% threshold and the flame's severity are unchanged. "%@ of quota used" has no caller left and is retired; "resets in %@" is added for en and zh-Hans. |
||
|---|---|---|
| .. | ||
| QuotaWarningPalette.swift | ||
| Theme.swift | ||
| ThemeState.swift | ||