Variant that respects the SliceLetterDisplay mode (#2606): when set to RadioIndexed, the colour follows the radio-provided per-client letter rather than the global slice id so the slice marker / passband colour keeps pace with the badge above the VFO.
| 4570 | // rather than the global slice id so the slice marker / passband colour |
| 4571 | // keeps pace with the badge above the VFO. |
| 4572 | static QColor sliceColorForOverlay(const SpectrumWidget::SliceOverlay& so) { |
| 4573 | const int colourIdx = SliceLabel::displayColorIndex(so.sliceId, so.perClientLetter); |
| 4574 | if (so.isActive) return SliceColorManager::instance().activeColor(colourIdx); |
| 4575 | return SliceColorManager::instance().dimColor(colourIdx); |
| 4576 | } |
| 4577 | |
| 4578 | // ─── Multi-slice overlay management ────────────────────────────────────────── |
| 4579 |
no test coverage detected