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

Method GetActiveColorRepresentation

Xaml/Controls/ColorPicker.cpp:1250–1262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1248 }
1249
1250 txmp::ColorRepresentation ColorPicker::GetActiveColorRepresentation()
1251 {
1252 if (m_HsvToggleButton)
1253 {
1254 const auto isChecked = m_HsvToggleButton.IsChecked();
1255 if (isChecked && isChecked.Value())
1256 {
1257 return txmp::ColorRepresentation::Hsva;
1258 }
1259 }
1260
1261 return txmp::ColorRepresentation::Rgba;
1262 }
1263
1264 txmp::ColorChannel ColorPicker::GetActiveColorSpectrumThirdDimension()
1265 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected