| 1189 | } |
| 1190 | |
| 1191 | void ColorPicker::UpdateChannelSliderBackgrounds() |
| 1192 | { |
| 1193 | UpdateChannelSliderBackground(m_Channel1Slider, txmp::ColorChannel::Channel1, GetActiveColorRepresentation()); |
| 1194 | UpdateChannelSliderBackground(m_Channel2Slider, txmp::ColorChannel::Channel2, GetActiveColorRepresentation()); |
| 1195 | UpdateChannelSliderBackground(m_Channel3Slider, txmp::ColorChannel::Channel3, GetActiveColorRepresentation()); |
| 1196 | UpdateChannelSliderBackground(m_AlphaChannelSlider, txmp::ColorChannel::Alpha, GetActiveColorRepresentation()); |
| 1197 | |
| 1198 | // Always HSV |
| 1199 | UpdateChannelSliderBackground(m_ColorSpectrumAlphaSlider, txmp::ColorChannel::Alpha, txmp::ColorRepresentation::Hsva); |
| 1200 | UpdateChannelSliderBackground(m_ColorSpectrumThirdDimensionSlider, GetActiveColorSpectrumThirdDimension(), txmp::ColorRepresentation::Hsva); |
| 1201 | } |
| 1202 | |
| 1203 | void ColorPicker::UpdateChannelSliderBackground(const ColorPickerSlider &slider, txmp::ColorChannel channel, txmp::ColorRepresentation representation) |
| 1204 | { |
no outgoing calls
no test coverage detected