1.6 KiB
PASS
Checked: cargo test -p ely-ui -p ely-platform passes (ely-ui 11 unit tests including run::tests and startup_panic, ely-platform 12 update tests and the rest). cargo clippy -p ely-ui -p ely-platform --all-targets is clean. tests/scripts/theme.sh passes on macOS, including the live swap, the empty theme and the return. references.sh, agents_md.py and comments.py pass. All 22 fixtures are byte-identical to reference/omarchy/themes/*/colors.toml at f45461a. I built env.rs and accessibility.rs alone in a scratch crate with the project toolchain (1.96.0), and cargo check passes for x86_64-unknown-linux-gnu and x86_64-pc-windows-msvc, so the cross-compile claim still holds after the wrapper was removed. Every file is under 500 lines.
Round 2:
- Fixed.
palette.rs:130-133liftssuccess,warning,dangerandinfoagainst bg and their*_subtle.TEXT_PAIRS(palette.rs:32-35) andverifycheck them. These pairs match the library'stooling/a11y.rs:35-38exactly.tests.rs:73-80asserts all four on all 22 themes, andtests.rs:123-130checks that a red which already reads is kept. The claims in TASKS.md ("正文与状态色 4.5:1") and agents.md ("各自的表面") now match the code. - Fixed.
run.rs:36-46matches unset,1andholdexplicitly and warns on anything else throughenv::value.run.rs:93-99tests this, and agents.md:112 documentshold. - Fixed.
accessibility.rs:6-8logs the full-motion fallback only when neither the variable nor the OS gives an answer. - Fixed. The wrapper is gone, and
reduce_motioncallsos_reduce_motiondirectly.
New defects: none found in the changed code.