Commit ffba304
committed
fix(gui): theme the rotating time cursor (it rendered black)
The cursor line and two sub-interval traces set their colour to
"var(--accent)" / "var(--good)". Plotly writes shape and trace colours
straight into the SVG, and SVG presentation attributes do NOT resolve CSS
custom properties — so the value was invalid and fell back to black,
leaving the time cursor near-invisible against the dark spectrogram.
Use the literal --accent/--good values per theme, matching how the rest of
this file already themes its plot colours (`dark ? … : …`).
Also fixes the same defect in the sub-interval Coherence and Cross-Power
traces, which are the same bug 60 lines away and were equally black.
Only the Plotly colours were affected; the remaining var(--…) uses in this
file are on real DOM elements, where CSS variables resolve correctly.
Verified in-browser: the cursor's rendered stroke is rgb(46,230,207) in
dark and rgb(10,141,128) in light — never black, and it follows the theme.1 parent 8dc2b26 commit ffba304
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
803 | 807 | | |
804 | 808 | | |
805 | 809 | | |
| |||
848 | 852 | | |
849 | 853 | | |
850 | 854 | | |
851 | | - | |
| 855 | + | |
852 | 856 | | |
853 | 857 | | |
854 | 858 | | |
| |||
872 | 876 | | |
873 | 877 | | |
874 | 878 | | |
875 | | - | |
| 879 | + | |
876 | 880 | | |
877 | 881 | | |
878 | 882 | | |
| |||
0 commit comments