Paint timeline slots spent in a cable measure blue

This commit is contained in:
flamingcow
2026-08-30 16:50:06 -07:00
parent 75fb915150
commit 36c2ff34fe
+8 -3
View File
@@ -40,6 +40,7 @@ var (
uiCrit = rgb{0xd0, 0x3b, 0x3b} uiCrit = rgb{0xd0, 0x3b, 0x3b}
uiCellOK = rgb{0x0a, 0x5d, 0x0a} uiCellOK = rgb{0x0a, 0x5d, 0x0a}
uiCellNA = rgb{0x3a, 0x3a, 0x37} uiCellNA = rgb{0x3a, 0x3a, 0x37}
uiCellMeas = rgb{0x20, 0x4d, 0x83}
uiAccent = rgb{0x39, 0x87, 0xe5} uiAccent = rgb{0x39, 0x87, 0xe5}
) )
@@ -432,12 +433,16 @@ func (d *display) drawColHeaders() {
d.hairline(d.rowYs[0] - 1) d.hairline(d.rowYs[0] - 1)
} }
// One row of history cells: na for a slot with nothing believable (never // One row of history cells: na for a slot never sampled, the non-committal
// sampled, or spent inside a measure), otherwise judged by the row. // measure color for one spent inside a cable measure, otherwise judged by the
// row.
func (d *display) heatRow(rowY int, hv histView, judge func(histSlot) rgb) { func (d *display) heatRow(rowY int, hv histView, judge func(histSlot) rgb) {
for k, s := range hv.slots { for k, s := range hv.slots {
c := uiCellNA c := uiCellNA
if s.sampled && !s.measuring { switch {
case s.measuring:
c = uiCellMeas
case s.sampled:
c = judge(s) c = judge(s)
} }
d.heatCell(rowY, k, c) d.heatCell(rowY, k, c)