app: let the settings hide limit windows and give the app an icon (#18)

The developer asked for an option to hide Claude's Fable week and for an
app icon that Windows can use (2026-11-04).

- Core: each provider's settings hold hidden limit windows by window
  series, so a hidden Codex week stays hidden across slot moves (D7, D8).
  Older settings files load with nothing hidden. Hidden windows give no
  pace popups.
- App: Settings → Providers lists each provider's limit windows with a
  Show checkbox, including hidden windows that are absent right now. The
  panel drops hidden windows in one place before it renders and queries
  history; the snapshot and history keep every window (D9).
- App: a usage gauge in the provider colours is the executable's icon,
  the window icon and the tray icon. tools/icon/make_icon.py renders it
  with Pillow, a development-only dependency, into a multi-size ICO and a
  PNG.

Closes #17
This commit was merged in pull request #18.
This commit is contained in:
2026-11-04 19:41:44 +01:00
parent 82fece85f5
commit c02829e2e1
17 changed files with 384 additions and 19 deletions
+12 -2
View File
@@ -270,13 +270,23 @@ better, and overstates `u₀` by the use in that sample's hour before the sample
ahead or behind, at most once per window and state until the state changes again, with
hysteresis of 2 points so a value on the threshold cannot flap. Popups can be turned off per
provider and per state.
- **Hidden windows.** The settings can hide single limit windows, such as Claude's Fable week.
A hidden window is a window series ([D7](#d7--pace)), so it stays hidden when Codex moves it to
another slot. It leaves every part of the panel and gives no popups. Its samples are still
recorded, and the snapshot still carries it
([D9](#d9--the-snapshot-file-is-the-apps-only-output-to-other-processes)). Nothing is hidden
by default.
- **Icon.** One icon, rendered from a committed source by a repository tool, is the Windows
executable's icon, the window icon and the tray icon.
- **Linux.** The app runs on Avalonia's X11 backend, under XWayland on CachyOS's KDE Plasma
Wayland session, because Wayland clients cannot place their own windows.
**Why.** R1, R4, R5. Avalonia is the cross-platform .NET UI toolkit with NativeAOT support. A
chart library would add reflection and size for three chart types.
chart library would add reflection and size for three chart types. A limit that a user does not
use only adds noise to the panel, and an app without its own icon is hard to find in the taskbar.
**Gives up.** Native OS notification styling, and a native Wayland window.
**Gives up.** Native OS notification styling, and a native Wayland window. A hidden window's
pace goes unnoticed until it is shown again.
## D9 — The snapshot file is the app's only output to other processes