MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / getColour

Method getColour

Source/Panels/SpectrogramPanel/SoloButton.cpp:44–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44juce::Colour SoloButton::getColour()
45{
46 if (isEntered)
47 {
48 if (! getToggleState())
49 {
50 return juce::Colours::grey.withAlpha (0.8f);
51 }
52 else
53 {
54 return COLOUR1.withAlpha (0.8f);
55 }
56 }
57 else
58 {
59 if (! getToggleState())
60 {
61 return juce::Colours::grey;
62 }
63 else
64 {
65 return COLOUR1;
66 }
67 }
68}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected