Skip to content

Commit dc4e03e

Browse files
committed
timings: add dark mode
1 parent 054f258 commit dc4e03e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/cargo/core/compiler/timings.rs

+28
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,34 @@ 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+
--error-text: #e80000;
641+
--text: #fff;
642+
--background: #121212;
643+
--h1-border-bottom: #444;
644+
--table-box-shadow: rgba(255, 255, 255, 0.1);
645+
--table-th: #a0a0a0;
646+
--table-th-background: #2c2c2c;
647+
--table-th-border-bottom: #555;
648+
--table-th-border-right: #444;
649+
--table-tr-border-top: #333;
650+
--table-tr-border-bottom: #333;
651+
--table-tr-odd-background: #1e1e1e;
652+
--table-td-background: #262626;
653+
--table-td-border-right: #333;
654+
--canvas-background: #1a1a1a;
655+
--canvas-axes: #b0b0b0;
656+
--canvas-grid: #333;
657+
--canvas-block: #aa95e8;
658+
--canvas-custom-build: #f0b165;
659+
--canvas-not-custom-build: #95cce8;
660+
--canvas-dep-line: #444;
661+
--canvas-dep-line-highlighted: #fff;
662+
--canvas-cpu: rgba(250, 119, 0, 0.2);
663+
}
664+
}
665+
638666
html {
639667
font-family: sans-serif;
640668
color: var(--text);

0 commit comments

Comments
 (0)