File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
features/Overview/SlotPerformance/ComputeUnitsCard Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export const computeUnitsColor = "#D19DFF";
89
89
export const feesColor = "#4CCCE6" ;
90
90
export const tipsColor = "#1FD8A4" ;
91
91
export const elapsedTimeColor = "#6A6A6E" ;
92
- export const revenueStartLineColor = "#FFFFFF" ;
92
+ export const startLineColor = secondaryTextColor ;
93
93
94
94
// transaction bars
95
95
export const successToggleColor = "#30A46C" ;
Original file line number Diff line number Diff line change @@ -364,12 +364,12 @@ export default function CuChart({
364
364
] ,
365
365
legend : { show : false } ,
366
366
plugins : [
367
+ startLinePlugin ( ) ,
367
368
cuRefAreaPlugin ( {
368
369
slotTransactionsRef,
369
370
maxComputeUnitsRef,
370
371
bankTileCountRef,
371
372
} ) ,
372
- startLinePlugin ( ) ,
373
373
timeScaleDragPlugin ( ) ,
374
374
wheelZoomPlugin ( { factor : 0.75 } ) ,
375
375
cuTooltipPlugin ( setTooltipData ) ,
Original file line number Diff line number Diff line change 1
1
import { InfoCircledIcon } from "@radix-ui/react-icons" ;
2
2
import { Tooltip } from "@radix-ui/themes" ;
3
3
import styles from "./cuChartIcon.module.css" ;
4
+ import { startLineColor } from "../../../../colors" ;
4
5
5
6
export const infoIconId = "cu-chart-info-icon" ;
6
7
@@ -10,7 +11,11 @@ export default function CuChartInfoIcon() {
10
11
return (
11
12
< div id = { infoIconId } className = { styles . iconContainer } >
12
13
< Tooltip content = "The 'revenue' scheduler strategy waits until 50ms remain in the block to schedule non-bundle user transactions" >
13
- < InfoCircledIcon width = { iconSize } height = { iconSize } />
14
+ < InfoCircledIcon
15
+ width = { iconSize }
16
+ height = { iconSize }
17
+ color = { startLineColor }
18
+ />
14
19
</ Tooltip >
15
20
</ div >
16
21
) ;
Original file line number Diff line number Diff line change 1
1
import uPlot from "uplot" ;
2
2
3
3
import { xScaleKey } from "./consts" ;
4
- import { revenueStartLineColor } from "../../../../colors" ;
4
+ import { startLineColor } from "../../../../colors" ;
5
5
import { getDefaultStore } from "jotai" ;
6
6
import { ScheduleStrategyEnum } from "../../../../api/entities" ;
7
7
import { scheduleStrategyAtom } from "../../../../api/atoms" ;
@@ -50,7 +50,7 @@ export function startLinePlugin(): uPlot.Plugin {
50
50
51
51
ctx . beginPath ( ) ;
52
52
53
- ctx . strokeStyle = revenueStartLineColor ;
53
+ ctx . strokeStyle = startLineColor ;
54
54
ctx . lineWidth = 5 / uPlot . pxRatio ;
55
55
ctx . setLineDash ( [ 5 , 5 ] ) ;
56
56
You can’t perform that action at this time.
0 commit comments