Commit Graph
5 Commits
Author SHA1 Message Date
Muse 53429a87e6 Inst*: proportions fix (audit Dec 2026) — buttons, switches, panels
Rocker I ON / O OFF (UP / DOWN double) 16 px bold, illuminated
lamp window scaled with ON/OFF inside; toggle/slide state 16 px
bold, slide knob bigger with grip; rotary numerals 16 px bold +
POS n / N readout inside the plate; push-button face label white
on the coloured face 18 px bold with title at the foot; E-STOP
white on red 18 px bold on the mushroom; breaker ON 16 px bold;
bezel GAUGE 14-16 px; panel/control headers taller with 18-20 px
bold titles, grid labels 14 px bold. Drive-bys found while
shooting: _color now falls back to the per-kind PropDef default
(LedBlue/PanelLampBlue rendered red); Rotary plate arc joined a
stray chord from the last numeral (cr.new_path before arc).
2026-12-05 22:53:17 +00:00
Muse 34ff1da9e7 Inst*: proportions fix (audit Dec 2026) — lamps + LEDs
LED block scales with the widget; label 12-15% of LED diameter
bold with leads ending above it; panel-lamp disc shrunk so the
16-18 px bold label clears below it; RGB swatches 24 px with 14 px
R/G/B labels; Beacon bar lowered, dome clear of it, FLASH rate in
white on the bar, BEACON 16 px bold below; StackLight title 16 px
bold plus R/A/G segment letters 24 px bold, white on lit / light
grey on unlit; LampTestButton text 16 px bold. Default word labels
via _label() (C constructor defaults, G2).
2026-12-05 22:45:07 +00:00
Muse 80a1698f7a Inst*: proportions fix (audit Dec 2026) — worst offenders + level gauges
Seg14/16 + LedDigits fill widget (dark face so dim segments read
faint, diagonals thinned); DigitalReadout off-segments slightly
more visible; dial numerals 7-8% of diameter bold just inside the
tick ring with titles inside below top numerals; NeedleVu numerals
4% of width bold, red in red zone, VU below arc centre; tank scale
16 / alarms 14 bold / % 18 bold with clearance; horizontal tank
capsule ends inside widget with alarm labels above; sight-glass
tube widened; KeySwitch NO KEY light-on-dark with position
numerals, slot at the current position; Nameplate engraving fit to
45% of plate width. Scaled-font helpers _cap_size/_fs/_fit_size
(cap-height convention, as C inst_cap_font).
2026-12-05 22:43:12 +00:00
cnmcdee 6d2dae20a1 Phase 6 fix: 14/16-segment maps + geometry verbatim from C
The draft segment code used its own segment ids (h/i centre
verticals, j/k/l/m diagonals) and drew diagonals as full-length
round-capped strokes, so I/K/M/V/W were wrong and every glyph was
swamped by a dark X blob ("HELLO" unreadable in the showcase
screenshot). This mirrors the C widgets exactly: segment_map()
strings from InstSeg14/16Display5.h, C ids (i/l centre verticals,
h/j/k/m diagonals), C draw_segment geometry (inset bars, hh/hv
verticals) and C draw_diag polygons that stop short of the centre.
Adds per-segment probe tests: every 14-seg glyph vs C map, 16-seg
M/W clean forms, 7-seg 8 vs 1.
2026-12-01 04:03:26 +00:00
cnmcdee 4333f72ed5 Phase 6: Stock (37) + Instrumentation (66) widgets -- drawing + property tables
Cairo drawings for all 103 kinds in lightgui/xframe/stock.py and
instruments.py (seeded 250-bar demo series so charts show their
colours with no series data; ddaf4bd anchor guard: ParallelChannel /
Pitchfork draw with 0-2 anchors; plot guard below 16px height).
Property tables generated by tools/gen_props_phase6.py from the C
Phase 4 tables (103 kinds, 1008 props, 116 distinct names; symbol
model-only; corrected up/down rgb(0,150,0)/rgb(200,30,30)).
Registry-name dispatch in core.lookup so kind-sharing entries
(IndVWAP/IndAnchoredVWAP kind VWAP, TArrow kind Arrow) keep their
own archetype drawings and generic-only tables.
2026-12-01 03:56:43 +00:00