-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc: make item-infos dimmer on dark theme #93896
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Some changes occurred in HTML/CSS/JS. |
This comment has been minimized.
This comment has been minimized.
I find it much harder to read. The text color is too "close" to the background color I think. |
Is it specifically the unstable yellow that's hard to read? Or all the colors? Would darkening that yellow help? Also, started a Zulip thread: https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/bright.20boxes.20in.20dark.20theme |
I'd say both actually. |
☔ The latest upstream changes (presumably #97783) made this pull request unmergeable. Please resolve the merge conflicts. |
Some changes occurred in HTML/CSS themes. |
Per the discussion in Zulip (linked above) I've adopted the blue-ish color used in Ayu into the dark theme. I've updated the demo and the screenshot in the first post. |
This comment has been minimized.
This comment has been minimized.
I really like this change for the dark theme! Should we do something similar for the light theme? That would simplify the CSS quite a lot. |
A change occurred in the Ayu theme. cc @Cldfire |
It looks great! If the PR is ready, then r=me once CI pass. |
This comment has been minimized.
This comment has been minimized.
Previously the item-info background colors were too bright for a dark theme, making a bright rectangle that draws the attention.
@bors r=GuillaumeGomez rollup |
…iaskrgr Rollup of 13 pull requests Successful merges: - rust-lang#93896 (rustdoc: make item-infos dimmer on dark theme) - rust-lang#99337 (rustdoc: simplify highlight.rs) - rust-lang#99421 (add crt-static for android) - rust-lang#99500 (Fix flags when using clang as linker for Fuchsia) - rust-lang#99511 (make raw_eq precondition more restrictive) - rust-lang#99992 (Add `x.sh` and `x.ps1` shell scripts) - rust-lang#100112 (Fix test: chunks_mut_are_send_and_sync) - rust-lang#100203 (provide correct size hint for unsupported platform `CommandArgs`) - rust-lang#100307 (Fix rust-lang#96847) - rust-lang#100350 (Stringify non-shorthand visibility correctly) - rust-lang#100374 (Improve crate selection on rustdoc search results page) - rust-lang#100392 (Simplify visitors) - rust-lang#100418 (Add stability attributes to BacktraceStatus variants) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Previously the item-info background colors were too bright for a dark theme, making a bright rectangle that draws the attention.
Demo:
https://rustdoc.crud.net/jsha/dark-colors/std/os/linux/process/struct.PidFd.html
https://rustdoc.crud.net/jsha/dark-colors/std/error/trait.Error.html#method.description
Before:
After:
r? @GuillaumeGomez