Muse ad23184f1c Monitor widgets: visual fixes + palette pending-icons carve-out + shots
- XArcGauge: face fill was a full white circle; now the top
  half-disc only (was painting a white half-disc over the widget
  background below the diameter line).
- XNetGraph: status split into two lines (one line overflowed a
  320px widget).
- XTempHistory: threshold label left-aligned; right-aligning
  under-measures the degree glyph and clipped at the border.
- xframe-palette: tolerate the 15 monitor icons as pending (same
  carve-out as the xframe-common ico test) so the palette stays
  usable until the C icons land; palette selftest passes.
- 15 screenshots in crates/xframe-demo/shots/ (Xvfb :108), all
  non-blank per PIL check and visually verified.
2026-12-05 18:12:17 +00:00

lightgui_rust — LightGUI ported to Rust

Rust port of LightGUI (HEAD eb0b5fc): an XFrame-native form designer with 562 XFrame widgets. See PORTING_PLAN.md for the survey and module map.

Workspace

Crate C++ source Status
crates/lightgui-core src/model.h, src/props.h, src/events.h, src/project_io.cpp, canonicalize() in src/main.cpp done
crates/lightgui-gen src/generator.cpp / src/generator.h (emits C++/XFrame, byte-identical) done
crates/lightgui-debug src/debugger.cpp / src/debugger.h (GDB/MI) in progress
crates/lightgui-support data extraction (registry, palette, indicators) in progress

probe/ is the step-0 crates.io probe (standalone, excluded from the workspace). data/ / tools/ are generated data + extraction tooling.

Build / test

cargo test    # workspace; rustc/cargo are login-shell-only: use `bash -lc`
cargo build   # must be warning-free (the C++ build was zero-warning)

Rust 1.100.1 stable, GTK 3.24 (gtk-rs 0.18), serde/serde_json 1.0.

Monitor widgets (X*)

The 15 btop-family monitor widgets (registry 547–561, family X, section Misc / X) live in crates/xframe-widgets/src/monitor.rs (one MonitorWidget struct, kind-dispatched like InstrumentWidget, new Archetype::Monitor). They draw with raw X11 via DrawTarget only — no GTK calls inside the widgets — and their live checks use the standard library only (/proc scans, systemctl is-active, TcpStream::connect_timeout); no new dependencies.

Widget What it shows Example
XHistoryGraph Scrolling multi-series time-series graph, 60 s window, cur/min/max/avg legend cargo run -p xframe-demo --example XHistoryGraph
XCoreGrid One mini history graph per CPU core, label + current % each cargo run -p xframe-demo --example XCoreGrid
XNetGraph Dual up/down scrolling graph, current rates + byte totals cargo run -p xframe-demo --example XNetGraph
XTempHistory Temperature history with threshold line + over-temp colouring cargo run -p xframe-demo --example XTempHistory
XUsageBar Horizontal gradient usage bar with label + % text cargo run -p xframe-demo --example XUsageBar
XStackBar Stacked multi-segment bar (used/cached/buffers/free) + legend cargo run -p xframe-demo --example XStackBar
XVerticalBar Vertical bar meter with scale + peak-hold marker cargo run -p xframe-demo --example XVerticalBar
XTachometer Round tachometer: needle, redline zone, digital readout, peak hold cargo run -p xframe-demo --example XTachometer
XArcGauge Semicircular arc gauge, coloured zones, big % in the middle cargo run -p xframe-demo --example XArcGauge
XDonutGauge Circular progress ring with % centred cargo run -p xframe-demo --example XDonutGauge
XProcessList Live process table from /proc: sortable columns, in-cell CPU% bars cargo run -p xframe-demo --example XProcessList
XLoadBadge Load averages (1/5/15 min) with colour thresholds + uptime cargo run -p xframe-demo --example XLoadBadge
XMonitorButton A button that is a live monitor: process / systemd unit / TCP port cargo run -p xframe-demo --example XMonitorButton
XMonitorGrid Panel of XMonitorButtons in a labelled grid, one shared poll timer cargo run -p xframe-demo --example XMonitorGrid
XSysBox Composite resource box: title + big number + history graph + usage bar cargo run -p xframe-demo --example XSysBox

History widgets are seeded with deterministic demo series; a host app feeds live samples with MonitorWidget::push_samples / push_value. XProcessList, XLoadBadge, XMonitorButton and XMonitorGrid pull live state in the constructor and re-poll through MonitorWidget::poll / update / poll_all on the host's timer (the demo runner has no periodic timer hook).

Docs

  • docs/stock-charts-csv.md — how the stock chart widgets ingest plotting data (CSV format, per-kind series, clear/populate, limits).
S
Description
No description provided
Readme
2.4 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 92.6%
Python 6.6%
Shell 0.5%
C++ 0.2%
Makefile 0.1%