Checked in real system dark and light mode on macOS (SkyLight theme switch on the M1, restored afterwards), Windows 11 (the app-mode setting, run on the VM's desktop) and Linux (Adwaita and Adwaita:dark), measuring each screenshot's text against its background with the WCAG contrast formula. The app's own colours fell short on every platform. The fixed firmware hues were 2.6 to 3.9:1 (LuxOS gold and ePIC blue on light, Alkane navy, Braiins purple and Bixbit red on dark). The hashrate greens and temperature purples were about 4:1, and the play/pause icons about 2:1 on light buttons. - readable()/readable_at(): nudge a colour toward black (light theme) or white (dark theme), keeping its hue, until it reaches 4.5:1 for text (3:1 for icons) against every given background. - palette(): green/amber/red/accent/label are made readable against the window, the zebra row and the KPI card; Palette::text() guards every computed cell colour (ratio and temperature blends, firmware hues). - Media button icons: at least 3:1 against the theme's button face. - macOS snapshot (wx-rs patch 0011): capture the window's frame view. The content view alone left unpainted areas transparent, which read as a white toolbar strip in dark mode. On screen the area was always the dark window colour. After the change, no app-coloured text is below 4.5:1 in any of the six theme/platform combinations. What the checker still flags is theme chrome (grid lines, GTK header labels, button outlines, the zoom slider) and anti-aliasing on thin fonts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BdKQBRg6YCM1XXQCTnD5GF
2.1 KiB
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 |
| 0011 | macOS self-test snapshot captures the window's frame view, so areas the app does not paint show the real window background instead of transparency |
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.