10 : fontAudio(juce::FontOptions(
11 juce::Typeface::createSystemTypefaceFor(BinaryData::fontaudio_ttf, BinaryData::fontaudio_ttfSize)))
20 void drawButtonText(juce::Graphics &g, juce::TextButton &button,
bool ,
23 auto font = fontAudio;
24 g.setFont(font.withHeight(
static_cast<float>(button.getHeight())));
26 juce::Colour textColour;
27 if (button.getClickingTogglesState() && button.getToggleState())
28 textColour = button.findColour(juce::TextButton::textColourOnId);
30 textColour = button.findColour(juce::TextButton::textColourOffId);
32 g.setColour(textColour);
40 button.setColour(juce::TextButton::ColourIds::buttonColourId, juce::Colours::black);
42 g.drawText(button.getButtonText(), button.getLocalBounds(), juce::Justification::centred,
true);