fix(web): apply the selected theme preset
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

The preset was written to data-theme in uppercase, while the CSS selectors
use lowercase/hyphenated values, so switching themes had no visual effect.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-14 09:44:13 +08:00
parent c507c01a71
commit 8925869f74
4 changed files with 61 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"task": "WBV2-P1425-001",
"updatedAt": "2026-11-14T07:56:00+08:00",
"updatedAt": "2026-11-14T08:44:00+08:00",
"status": "in_progress",
"focus": "COMPLETE-TUTORIAL-001 backend export gap (USD/Alembic)",
"breakpoint": "blender-5.2.0/source/blender/web_engine/CMakeLists.txt (USD wiring); WASM 6ee2b261",
@@ -252,5 +252,11 @@
"result": "manifest 1 systems · 0 cached after RIGID_BODY; 播放 frame 1→2; 暂停 stops at 2",
"script": "tools/web/complete/probe-physics.mjs",
"acceptance": "NOT_CLAIMED"
},
"themeFix": {
"fix": "App.tsx normalizes themes.preset to lowercase/hyphen when writing documentElement.dataset.theme",
"result": "DARK background rgb(24,24,24) → LIGHT rgb(236,236,236) → DARK",
"script": "tools/web/complete/probe-theme.mjs",
"acceptance": "NOT_CLAIMED"
}
}