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

Method dimColor

src/gui/SliceColorManager.cpp:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73QColor SliceColorManager::dimColor(int sliceId) const
74{
75 int idx = safeIdx(sliceId);
76 if (m_useCustom) {
77 // Derive dim color at ~40% of the custom active color's value.
78 QColor c = m_customColors[idx];
79 return QColor(c.red() * 2 / 5, c.green() * 2 / 5, c.blue() * 2 / 5);
80 }
81 return defaultDim(idx);
82}
83
84QString SliceColorManager::hexActive(int sliceId) const
85{

Callers 2

sliceColorFunction · 0.80
sliceColorForOverlayFunction · 0.80

Calls

no outgoing calls

Tested by 2

sliceColorFunction · 0.64
sliceColorForOverlayFunction · 0.64