11 Commits
Author SHA1 Message Date
Muse f93dbb8c84 Merge fix/monitor-widget-proportions: dynamic graph margins, scaled fonts, tach numerals 2026-12-05 21:32:44 +00:00
Muse 81a9693d71 Fix monitor-widget proportions: dynamic graph margins, scaled fonts, tach numerals
- Graphs (History/Net/Temp): dynamic left margin from the widest Y
  label (fixes Y labels overflowing the plot), legend on top, 5 Y
  labels, humanised units in NetGraph, TempHistory threshold label
  above the line ("80 C limit"), top/bottom Y labels hang clear of
  the title and the strip below the plot. History gains -60s/now.
- XTachometer: numerals 7.5% of dial diameter bold just inside the
  tick ring, RPM bold centred in-dial below the top numerals (its
  baseline hangs below the top numeral so it cannot collide with
  the 3200/4800 numerals on small dials), readout "value (peak N)"
  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 keeps 4x2; UsageBar
  labels outside the bar on a dark panel; StackBar title+total
  header (adaptive: omitted at 48px where it would push the legend
  out) with centred block; VerticalBar value inside the bar, peak
  label with shrink-to-fit; ArcGauge centre 40-48px + endpoints;
  DonutGauge centre 36-44px, ring 8-10% of diameter, duplicate
  title dropped, centre label is the value name; ProcessList 13px
  rows, bold header with sort indicator, "N procs"; LoadBadge
  centred two-line block with scaled values; MonitorButton scaled
  label/dot/status + detail line; MonitorGrid ceil(sqrt(n)) columns,
  name+status+detail design with wrapped detail; SysBox hero
  28-32px + max + bar %.
- New _fpx() clamp helper; XStackBar gains the "unit" prop
  (props_monitor.py) for its "total <sum> <unit>" header.
- Demos: button/grid labels "SSH :22" -> "sshd :22", tach label
  "Engine" -> "RPM", stackbar demo 320x48 -> 320x120 (title+bar+
  legend cannot fit in 48px), verticalbar demo 60 -> 160 wide
  (the "peak 82" label cannot fit in a 60px widget).
- Deviations from the audit spec: UsageBar label capped at 40px
  (the literal 0.45x rule gives 209px in a 464px-tall bar); SysBox
  hero uses 10% of height clamped 20-32px (spec 6-7% conflicts
  with the audited-correct PY value of 10.3%); PY LoadBadge gets
  no 1/5/15 sub-labels (the audit calls the PY layout correct;
  the sub-labels were directed at Rust).
Full suite: 363 tests OK (44 skipped). All 15 demos shot + verified.
2026-12-05 21:32:36 +00:00
Muse 03065d35bf README: widget count 547 -> 562, Monitor (15) family section
363 tests; 598-entry palette (562 widgets + 36 legacy); new
X* monitor-family bullet + layout entries; examples README
counts (209 XFrame) + monitor live-timer note.
2026-12-05 17:09:58 +00:00
Muse b361a35909 Fix XStackBar legend: drop overlapping total text
The right-aligned total overlapped the last legend item and its
byte formatting was meaningless for unitless segments. Legend now
shows only the segment chips + percentages.
2026-12-05 17:09:23 +00:00
Muse 841dddcef6 Examples + shots: XProcessList, XLoadBadge, XMonitorButton, XMonitorGrid, XSysBox
Designer-pattern examples + Xvfb :107 screenshots. The last four
feed live data (real /proc processes, load averages, sshd :22 /
unit checks); XProcessList re-shot after the wall-time CPU% fix
(busy loop now reads ~97%, not ~240%).
2026-12-05 17:08:17 +00:00
Muse 2ecc09dd4d Examples + shots: XStackBar, XVerticalBar, XTachometer, XArcGauge, XDonutGauge
Designer-pattern examples + Xvfb :107 screenshots (see Batch B
for the harness/shooter). Gauges re-shot after the _arc_stroke
fix; tachometer readout moved clear of the 0/max labels.
2026-12-05 17:07:59 +00:00
Muse 2d52b55743 Examples + shots: XHistoryGraph, XCoreGrid, XNetGraph, XTempHistory, XUsageBar
Designer-pattern examples (xgraph.py harness + live-demo GLib timer
feeding seeded/live sine data). Screenshots under Xvfb :107 via
tools/shoot_monitor.py (xdotool + import, PIL non-blank check).
2026-12-05 17:07:40 +00:00
Muse cff0c74605 Fix gauge arcs: stray diagonal line; wall-time per-process CPU%
- Cairo arc() draws a connecting line from the current point to
  the arc start, and _wtext() leaves a current point (move_to +
  show_text), so the tachometer / arc / donut gauges grew a stray
  diagonal in the track color. New _arc_stroke() helper does
  new_path() before every arc.
- Tachometer digital readout moved below the hub (was colliding
  with the 0/max tick labels).
- XProcessList CPU% is now per-core against per-process wall
  time: on this VPS /proc/stat totals advance at only ~320
  jiffies/s for 8 cores (host vCPU scheduling), so the stat
  denominator inflated a busy loop to ~240%; wall time gives
  ~97% (verified live against a busy loop).
2026-12-05 17:07:19 +00:00
Muse 54c60188f0 X* monitor family (15 widgets): MonitorWidget + palette 547 -> 562
New btop-style live monitor widgets (registry 547-561, archetype
Monitor, family X, section Misc / X): XHistoryGraph, XCoreGrid,
XNetGraph, XTempHistory, XUsageBar, XStackBar, XVerticalBar,
XTachometer, XArcGauge, XDonutGauge, XProcessList, XLoadBadge,
XMonitorButton, XMonitorGrid, XSysBox. Drawn with Cairo on a
Gtk.DrawingArea like the rest of the set; sample data is runtime
state only (demo sine data until push()/refresh()/poll() feeds
real data). Checks are stdlib only: /proc scan, systemctl
is-active, socket to localhost. 35 new tests; full suite 363 green.
2026-12-05 16:48:47 +00:00
Muse bbc284d0bb docs(pythondoc): runnable example programs for all 547 widgets
One minimal complete program per widget, from the designer codegen
(one window, one widget, OnClick wired). Every example was run under
Xvfb and screenshotted (547/547 ok); screenshots appear on the widget
pages at pythondoc.lightgui.com.
2026-12-02 06:04:20 +00:00
Muse 4f9f1bff32 docs(pythondoc): runnable example programs for 5 pilot widgets
Minimal complete programs from the designer codegen (one window, one
widget, OnClick wired), plus examples/README.md. Screenshots taken
under Xvfb prove each runs. Full 547-widget set follows.
2026-12-02 05:54:31 +00:00