MCPcopy Create free account
hub / github.com/StrangeLoopsAudio/gRainbow / selectedCommonParamsChanged

Method selectedCommonParamsChanged

Source/Components/Sliders.cpp:140–144  ·  view source on GitHub ↗

Update slider colours for new selected group

Source from the content-addressed store, hash-verified

138
139// Update slider colours for new selected group
140void CommonSlider::selectedCommonParamsChanged(ParamCommon* newParams) {
141 setColour(juce::Slider::ColourIds::rotarySliderOutlineColourId, getUsedColour());
142 // Update active parameter pointer
143 parameter = parameters.getUsedParam(newParams, mType);
144}
145
146// Get the colour of the parameter at the level that's used (global, note)
147juce::Colour CommonSlider::getUsedColour() {

Callers

nothing calls this directly

Calls 2

getUsedColourFunction · 0.85
getUsedParamMethod · 0.80

Tested by

no test coverage detected