Skip to content

Commit 3085ef7

Browse files
committed
fix typo
1 parent cc58c73 commit 3085ef7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/core/compiler/timings.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ const BG_COLOR = getCssColor('--background');
3030
const CANVAS_BG= getCssColor('--canvas-background');
3131
const TICK_COLOR = getCssColor('--tick');
3232
const GRID_COLOR = getCssColor('--grid');
33-
const BLOCK_COLOR = getCssColor('--grid');
33+
const BLOCK_COLOR = getCssColor('--block');
3434
const CUSTOM_BUILD_COLOR = getCssColor('--custom-build');
3535
const NOT_CUSTOM_BUILD_COLOR = getCssColor('--not-custom-build');
3636
const DEP_LINE_COLOR = getCssColor('--dep-line');
37-
const DEP_LINE_HIGHTLIGHTED_COLOR = getCssColor('--dep-line-highlighted');
37+
const DEP_LINE_HIGHLIGHTED_COLOR = getCssColor('--dep-line-highlighted');
3838
const CPU_COLOR = getCssColor('--cpu');
3939

4040
for (let n=0; n<UNIT_DATA.length; n++) {
@@ -161,7 +161,7 @@ function draw_dep_lines(ctx, unit_idx, highlighted) {
161161
function draw_one_dep_line(ctx, from_x, from_y, to_unit, highlighted) {
162162
if (to_unit in UNIT_COORDS) {
163163
let {x: u_x, y: u_y} = UNIT_COORDS[to_unit];
164-
ctx.strokeStyle = highlighted ? DEP_LINE_HIGHTLIGHTED_COLOR: DEP_LINE_COLOR;
164+
ctx.strokeStyle = highlighted ? DEP_LINE_HIGHLIGHTED_COLOR: DEP_LINE_COLOR;
165165
ctx.setLineDash([2]);
166166
ctx.beginPath();
167167
ctx.moveTo(from_x, from_y+BOX_HEIGHT/2);

0 commit comments

Comments
 (0)