Skip to content

Commit

Permalink
timings: add dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Sep 26, 2024
1 parent 96a2732 commit 365c852
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/cargo/core/compiler/timings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,29 @@ static HTML_TMPL: &str = r#"
--canvas-cpu: rgba(250, 119, 0, 0.2)
}
@media (prefers-color-scheme: dark) {
:root {
--text: #fff;
--background: #121212;
--h1-border-bottom: #444;
--table-box-shadow: rgba(255, 255, 255, 0.1);
--table-th: #a0a0a0;
--table-th-background: #2c2c2c;
--table-th-border-bottom: #555;
--table-th-border-right: #444;
--table-tr-border-top: #333;
--table-tr-border-bottom: #333;
--table-tr-odd-background: #1e1e1e;
--table-td-background: #262626;
--table-td-border-right: #333;
--canvas-background: #1a1a1a;
--canvas-axes: #b0b0b0;
--canvas-grid: #333;
--canvas-dep-line: #444;
--canvas-dep-line-highlighted: #fff;
}
}
html {
font-family: sans-serif;
color: var(--text);
Expand Down

0 comments on commit 365c852

Please sign in to comment.