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

Method getColour

Source/Panels/SpectrogramPanel/EnableButton.cpp:61–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61juce::Colour EnableButton::getColour()
62{
63 if (isEntered)
64 {
65 if (! getToggleState())
66 {
67 return juce::Colours::grey.withAlpha (0.8f);
68 }
69 else
70 {
71 return COLOUR1.withAlpha (0.8f);
72 }
73 }
74 else
75 {
76 if (! getToggleState())
77 {
78 return juce::Colours::grey;
79 }
80 else
81 {
82 return COLOUR1;
83 }
84 }
85}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected