gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

labelStyle.cpp (533B)


      1 #include "labelStyle.h"
      2 
      3 namespace genericUI
      4 {
      5 	juce::Font LabelStyle::getPopupMenuFont()
      6 	{
      7 		return LookAndFeel_V4::getPopupMenuFont();  // NOLINT(bugprone-parent-virtual-call)
      8 	}
      9 
     10 	void LabelStyle::apply(juce::Label& _target) const
     11 	{
     12 		if(m_bgColor.getARGB())
     13 			_target.setColour(juce::Label::ColourIds::backgroundColourId, m_bgColor);
     14 		_target.setColour(juce::Label::ColourIds::textColourId, m_color);
     15 		if(!m_text.empty())
     16 			_target.setText(m_text, juce::dontSendNotification);
     17 		_target.setJustificationType(m_align);
     18 	}
     19 }