Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions gui/web/src/components/tabs/RotatingTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,11 @@ export default function RotatingTab({ machine }: { machine: string }) {
x1: cursorMs,
y1: 1,
line: {
color: "var(--accent)", // bright turquoise
// Plotly writes this straight into the SVG `stroke`, which does NOT
// resolve CSS custom properties — "var(--accent)" was invalid there and
// fell back to black, leaving the cursor near-invisible in dark mode.
// Use the literal --accent value for each theme.
color: dark ? "#2ee6cf" : "#0a8d80",
width: 2,
dash: "dash" as const,
},
Expand Down Expand Up @@ -848,7 +852,7 @@ export default function RotatingTab({ machine }: { machine: string }) {
mode: "lines" as const,
x: freqs,
y: coh,
line: { color: "var(--good)", width: 1.5 },
line: { color: dark ? "#54e08a" : "#1f9d57", width: 1.5 }, // --good, literal (see above)
name: "Coherence",
xaxis: "x",
yaxis: "y",
Expand All @@ -872,7 +876,7 @@ export default function RotatingTab({ machine }: { machine: string }) {
mode: "lines" as const,
x: freqs,
y: power,
line: { color: "var(--accent)", width: 1.5 },
line: { color: dark ? "#2ee6cf" : "#0a8d80", width: 1.5 }, // --accent, literal (see above)
name: "Cross-Power",
xaxis: "x",
yaxis: "y3",
Expand Down
Loading