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

Function audioHealthStyle

src/gui/NetworkDiagnosticsDialog.cpp:2370–2387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2368}
2369
2370static QString audioHealthStyle(AudioHealthState state)
2371{
2372 switch (state) {
2373 case AudioHealthState::Healthy:
2374 return "QLabel { color: #64d36e; font-weight: 700; }";
2375 case AudioHealthState::SlowDelivery:
2376 case AudioHealthState::PacketGaps:
2377 return "QLabel { color: #ff6b6b; font-weight: 700; }";
2378 case AudioHealthState::Waiting:
2379 case AudioHealthState::NoRecentAudio:
2380 case AudioHealthState::Measuring:
2381 return "QLabel { color: #8d99ad; font-weight: 700; }";
2382 case AudioHealthState::RepeatedLatePackets:
2383 case AudioHealthState::BufferLow:
2384 return "QLabel { color: #e8b977; font-weight: 700; }";
2385 }
2386 return "QLabel { color: #8d99ad; font-weight: 700; }";
2387}
2388
2389NetworkDiagnosticsHistory::NetworkDiagnosticsHistory(RadioModel* model, AudioEngine* audio, QObject* parent)
2390 : QObject(parent)

Callers 1

refreshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected