2 Commits
Author SHA1 Message Date
Muse e8a40804ab Fix monitor-widget proportions: dynamic graph margins, scaled fonts, tach numerals
- Graphs (XHistoryGraph/XNetGraph/XTempHistory): dynamic left margin from
  widest Y label (fixes Y labels overflowing the plot), legend wrapped to
  two lines when too wide, legend on top, 5 Y labels, humanised units in
  NetGraph, TempHistory on the PY layout (now top-right, min/max/avg bottom,
  threshold label above the line). Top/bottom Y labels hang clear of the
  title and the strip below the plot.
- XTachometer: numerals 7.5% of dial diameter bold just inside the tick
  ring, RPM bold centred in-dial, readout enlarged below the hub,
  redline numerals in red.
- All 14 audit widgets: font sizes derived from widget dimensions per
  the proportions audit (titles 16px bold, hero values 24-48px bold,
  body/legend 13-16px, min 11px); CoreGrid 4x2 for 8 cores; UsageBar
  labels outside the bar; StackBar block centred with grown bar;
  VerticalBar value inside the bar; ArcGauge centre 40-48px + load
  sub-label + endpoints; DonutGauge centre 36-44px, ring 8-10% of
  diameter, duplicate title dropped; ProcessList 13px rows, colour-coded
  CPU bars after the number; LoadBadge centred value block with 1/5/15
  sub-labels; MonitorButton scaled label/dot/status + detail line;
  MonitorGrid ceil(sqrt(n)) columns; SysBox hero 28-32px + max + bar %.
- New xframe::scaled_font() helper in InstData.h (scalable misc-fixed
  XLFD, cached per size/bold) + font_text_width/draw_text_font.
- Deviations from the audit spec: UsageBar label capped at 40px (the
  literal 0.45x rule gives 209px in the 464px-tall demo bar); SysBox
  hero uses 10% of height clamped 20-32px (spec 6-7% conflicts with
  the audited-correct PY value of 10.3%).
All 15 widget demos rebuild clean and were screenshot-verified.
2026-12-05 21:09:37 +00:00
Muse f5b3b73e58 XFrame monitor widgets: XHistoryGraph, XCoreGrid, XNetGraph, XTempHistory
Scrolling multi-series history graph (60s window, cur/min/max/avg
legend), per-core mini-graph grid, dual up/down network graph with
rates + totals, temperature history with threshold line + over-temp
colouring. Header-only C++, demo mains, examples, Xvfb screenshots.
2026-12-05 16:48:16 +00:00