rust-lang / cargo

The Rust package manager
https://doc.rust-lang.org/cargo
Apache License 2.0
12.77k stars 2.42k forks source link

cargo-timing.html supports dark mode #14586

Closed ahaoboy closed 1 month ago

ahaoboy commented 1 month ago

Problem

For users using dark mode, opening cargo-timing.html is very glaring

I can use some browser ext to force the web page to switch to dark mode, but the canvas will still be white background.

Image

Proposed Solution

For web pages, there is already prefers-color-scheme

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

For canvas, maybe just invert the basic white and black, and keep the other colors?

Notes

No response

weihanglo commented 1 month ago

Thanks for the proposal. This is a good feature, though I don't think any of the maintainers has time to either mentor or design it.