Every colour, size, spacing and font now lives in crates/ui/src/theme.rs. At 1100 px and wider the page is three columns of panels, at 700 px two, below that one: a toolbar with the range as one segmented control, a headline panel, six stat cards in one row, three panels side by side, then Over time beside Speed, then Raw counters as key/value lines. The type is Inter and JetBrains Mono (SIL Open Font License, licence files beside the fonts). Tables size their columns to what they hold, charts keep their time labels inside the plot and tint unrecorded time, and the hit-rate bars leave the language table where there is no room. Behaviour is unchanged: ranges, refresh, theme switch, Copy summary, Export JSON, Zero stats with its question, the language filter and the remembered settings work as before.
38 lines
986 B
HTML
38 lines
986 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="color-scheme" content="dark light" />
|
|
<title>sccache dash</title>
|
|
<link data-trunk rel="rust" data-bin="sccache-dash-ui" />
|
|
<style>
|
|
/* The page is one canvas that fills the window and scrolls inside itself. */
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
height: 100dvh;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
/* The page colour of each theme (crates/ui/src/theme.rs), so nothing flashes while the page loads. */
|
|
background: #0e1116;
|
|
}
|
|
@media (prefers-color-scheme: light) {
|
|
html,
|
|
body {
|
|
background: #f5f6f8;
|
|
}
|
|
}
|
|
canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
touch-action: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<canvas id="the_canvas_id"></canvas>
|
|
</body>
|
|
</html>
|