MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / UpdateChannelSliderBackgrounds

Method UpdateChannelSliderBackgrounds

Xaml/Controls/ColorPicker.cpp:1191–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected