Skip to content

cargo-timing.html supports dark mode #14586

@ahaoboy

Description

@ahaoboy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-timingsArea: timingsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions