Repro:
This affects the plan we have for docs.rs to follow rustdoc's theme setting, rust-lang/docs.rs#1116 (comment), I assumed that rustdoc would update the stored theme whenever it changes so we could synchronize off that. Missing the initial setting based on the fact that light is the "default" theme loaded before the JS runs seems like a bug.
cc @nasso,
Repro:
ayulightfollowing the systemayubecause the stored theme was never updatedayu, and then change the system theme back to light, updating the displayed theme tolightlightbecause the stored theme was updatedThis affects the plan we have for docs.rs to follow rustdoc's theme setting, rust-lang/docs.rs#1116 (comment), I assumed that rustdoc would update the stored theme whenever it changes so we could synchronize off that. Missing the initial setting based on the fact that
lightis the "default" theme loaded before the JS runs seems like a bug.cc @nasso,