//==============================================================================
void InterfaceComponent::addLabel (juce::Label& label,
                                   const juce::String& text,
                                   const juce::String& tooltip)
{
    label.setText (text, juce::NotificationType::dontSendNotification);
    label.setTooltip (tooltip);
    label.setFont (juce::Font (15.0f, juce::Font::plain));
    label.setJustificationType (juce::Justification::centredRight);
    label.setEditable (false, false, false);
    label.setColour (juce::Label::textColourId, juce::Colours::white);
    label.setColour (juce::Label::backgroundColourId, juce::Colour (juce::Colours::transparentBlack));

    addAndMakeVisible (&label);
    labelList.add (&label);
}
Exemplo n.º 2
0
void MainContentComponent::SetLabelSettings(juce::Label& label_to_set) {
  label_to_set.setFont(juce::Font{12.f, juce::Font::bold});
  label_to_set.setEditable(false);
  label_to_set.setColour(juce::Label::textColourId, juce::Colours::darkgrey);
}