On macOS several table columns showed no values until a row was clicked. wxOSX draws custom cells without clipping to the cell, and the segment renderer paints its zebra background over an oversized rectangle (a column width either side, 40 px up and down) that GTK and MSW clip to the cell. On the Mac each cell's fill painted over its neighbours. Selected rows skip the fill, so their text came back. On macOS the zebra is now the table's native alternating rows. AppKit paints them under every cell in the theme's colours, and no row carries a background attribute, so the renderer never fills. Plain segment text uses the theme-aware list text colour instead of the control's foreground colour. To check rendering without screen-recording permission, the self-test takes ALKANE_SNAPSHOT=path (macOS) and writes a PNG of the window as the app draws it (osx_native.mm: cacheDisplayInRect). Before/after snapshots on the M1 confirm the fix in light and dark appearance. wx-rs patch 0010. Also folds in PR #24 (build-gui-macos without --locked). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BdKQBRg6YCM1XXQCTnD5GF
wx-rs patch queue
../wx-rs-0.2.0-patched/ is the tree cargo builds. These patches, applied in
order to the pristine crate in ../upstream/ (digest pinned in ../VERSION),
must reproduce it byte for byte; CI checks this with
scripts/wx_rs_patches.py check.
To change the bridge: edit the patched tree, build and test, then record the change as the next patch and commit both:
python3 scripts/wx_rs_patches.py capture short-name "One-line subject" [PATH ...]
capture limits the patch to the given paths (default: everything that
differs) and re-runs the check. 0002 and 0003 create the widget bridge
files outright, so they carry those files as of the queue's re-baselining;
later changes go in new patches.
| Patch | What |
|---|---|
| 0001 | Linux/GTK3 build through wx-config |
| 0002 | Widget/event bridge, Rust side (src/widgets.rs) |
| 0003 | Widget/event bridge, C++ side (cpp_src/widgets_bridge.cpp) |
| 0004 | Upstream fixes for wx 3.3 (uninitialised callbacks) |
| 0005 | Packaging: build-only reqwest note; drop the case-duplicate readme.md |
| 0006 | Build: platform from the target, not the host; Windows/GNU via wx-config |
| 0007 | wxbridge.cpp on wxMSW: no input-swallowing overlay, appearance before the first window, work-area sizing, executable icon, UTF-8 menu fix |
| 0008 | Widget bridge on wxMSW: generic data-view input and tooltips, DIP boundary, anti-aliased shapes, themed selection colours |
| 0009 | macOS: wxOSX (universal static) through wx-config, logical sizes on Apple, clang compiler runtime for @available |
| 0010 | macOS table: native alternating rows instead of the unclipped custom-cell background fill (it hid neighbouring cells' text), theme-aware text colour, osx_native.mm, self-test window snapshot |
History: the round 19 health-tooltip fix (GTK tip area converted from bin-window to widget coordinates) used to be a separate patch on top of an older 0003; it is part of 0003 since the re-baselining.