Rustdoc does not update the stored theme if the currently displayed theme matches the system #78273
Labels
A-rustdoc-themes
Area: Themes for HTML pages generated by rustdoc
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Repro:
ayu
light
following the systemayu
because the stored theme was never updatedayu
, and then change the system theme back to light, updating the displayed theme tolight
light
because 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
light
is the "default" theme loaded before the JS runs seems like a bug.cc @nasso,
The text was updated successfully, but these errors were encountered: