| 71 | } |
| 72 | |
| 73 | QColor 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 | |
| 84 | QString SliceColorManager::hexActive(int sliceId) const |
| 85 | { |
no outgoing calls