fix(web): apply the selected theme preset
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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user