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

Method createLabels

Source/Panels/ControlPanel/BandPanel.cpp:130–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void BandPanel::createLabels()
131{
132 auto setupPanelLabel = [this](juce::Label& label, const juce::String& text, juce::Colour colour)
133 {
134 addAndMakeVisible(label);
135 label.setText(text, juce::dontSendNotification);
136 label.setFont(juce::Font { juce::FontOptions().withName(KNOB_FONT).withHeight(KNOB_FONT_SIZE).withStyle("Plain") });
137 label.setColour(juce::Label::textColourId, colour);
138 label.setJustificationType(juce::Justification::centred);
139 };
140
141 setupPanelLabel(dcFilterLabel, "DC", SHAPE_COLOUR.withBrightness(0.8f));
142}
143
144void BandPanel::createButtons()
145{

Callers

nothing calls this directly

Calls 1

setTextMethod · 0.80

Tested by

no test coverage detected