Files
alkane-toolkit/thirdparty/wx-rs/patches
noahandClaude Opus 4.8 8cb6989000
source / check (pull_request) Skipped
verify / verify (pull_request) Successful in 22m53s
verify / verify-windows (pull_request) Successful in 20m10s
feat(gui): compact icon toolbar + SD-card media button
Reworks the fleet-view toolbar into icon buttons and adds a direct
Installation-Media entry point:

- New wx-rs bridge fn `wxbr_svg_button` (patch 0010): render a recoloured SVG
  into a clickable wxBitmapButton. Rust wrapper `Widget::svg_button`.
- Settings -> gear icon; its dropdown already carries Logs (ID_LOGS_OPEN), so
  the standalone Log toolbar button is removed (the inline log view + toggle
  are kept but no longer surfaced as a button).
- Bug report -> bug icon.
- New unified "Data" icon (database) with a dropdown: Presets, Filter, Columns,
  Export (the four former standalone buttons; items dispatched via on_menu_item).
- New "SD card" icon opens the Installation Media dialog without right-clicking
  a miner (ID_MEDIA_TOOLBAR -> build_install_media_dialog; defaults to the
  zynq-7010 board when nothing is selected).
- Four new Font-Awesome-style icons (gear/bug/database/sd-card), recoloured to
  the theme foreground via svg_recolored; tooltips name each button.

Native + Windows clippy clean, fmt clean, GUI self-test passes; icons verified
to rasterise correctly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i
2026-11-17 13:27:01 -06:00
..

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.