Skip to content

Commit 365c852

Browse files
committed
timings: add dark mode
1 parent 96a2732 commit 365c852

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/cargo/core/compiler/timings.rs

+23
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,29 @@ static HTML_TMPL: &str = r#"
635635
--canvas-cpu: rgba(250, 119, 0, 0.2)
636636
}
637637
638+
@media (prefers-color-scheme: dark) {
639+
:root {
640+
--text: #fff;
641+
--background: #121212;
642+
--h1-border-bottom: #444;
643+
--table-box-shadow: rgba(255, 255, 255, 0.1);
644+
--table-th: #a0a0a0;
645+
--table-th-background: #2c2c2c;
646+
--table-th-border-bottom: #555;
647+
--table-th-border-right: #444;
648+
--table-tr-border-top: #333;
649+
--table-tr-border-bottom: #333;
650+
--table-tr-odd-background: #1e1e1e;
651+
--table-td-background: #262626;
652+
--table-td-border-right: #333;
653+
--canvas-background: #1a1a1a;
654+
--canvas-axes: #b0b0b0;
655+
--canvas-grid: #333;
656+
--canvas-dep-line: #444;
657+
--canvas-dep-line-highlighted: #fff;
658+
}
659+
}
660+
638661
html {
639662
font-family: sans-serif;
640663
color: var(--text);

0 commit comments

Comments
 (0)