MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / categoryColor

Method categoryColor

src/gui/KeyboardMapWidget.cpp:17–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15inline QColor kUnboundFill() { return AetherSDR::ThemeManager::instance().color("color.background.1"); }
16inline QColor kUnboundBorder() { return AetherSDR::ThemeManager::instance().color("color.background.2"); }
17QColor 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

Callers 1

buildUIMethod · 0.80

Calls 2

kUnboundFillFunction · 0.85
colorMethod · 0.45

Tested by

no test coverage detected