| 15 | inline QColor kUnboundFill() { return AetherSDR::ThemeManager::instance().color("color.background.1"); } |
| 16 | inline QColor kUnboundBorder() { return AetherSDR::ThemeManager::instance().color("color.background.2"); } |
| 17 | QColor KeyboardMapWidget::categoryColor(const QString& cat) const |
| 18 | { |
| 19 | if (cat == "Frequency") return AetherSDR::ThemeManager::instance().color("color.accent.dim"); |
| 20 | if (cat == "TX") return QColor(0x80, 0x00, 0x20); |
| 21 | if (cat == "Audio") return AetherSDR::ThemeManager::instance().color("color.accent.success"); |
| 22 | if (cat == "Display") return QColor(0x60, 0x60, 0x00); |
| 23 | if (cat == "Slice") return QColor(0x40, 0x00, 0x80); |
| 24 | if (cat == "Mode") return QColor(0x40, 0x00, 0x80); |
| 25 | if (cat == "DSP") return QColor(0x00, 0x40, 0x80); |
| 26 | if (cat == "Tuning") return QColor(0x00, 0x60, 0x60); |
| 27 | if (cat == "AGC") return QColor(0x00, 0x40, 0x80); |
| 28 | if (cat == "Filter") return QColor(0x00, 0x40, 0x80); |
| 29 | if (cat == "Band") return AetherSDR::ThemeManager::instance().color("color.accent.dim"); |
| 30 | if (cat == "RIT/XIT") return QColor(0x00, 0x60, 0x60); |
| 31 | return kUnboundFill(); |
| 32 | } |
| 33 | |
| 34 | // ─── Construction ─────────────────────────────────────────────────────────── |
| 35 |
no test coverage detected