| 128 | } |
| 129 | |
| 130 | void 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 | |
| 144 | void BandPanel::createButtons() |
| 145 | { |