mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Fix some compiler warnings when building JUCE
This commit is contained in:
parent
8977e2d3c4
commit
0beebaa46d
3 changed files with 17 additions and 14 deletions
|
|
@ -76,7 +76,7 @@ void KnobLookAndFeel::drawRotarySlider(juce::Graphics& g, int x, int y, int widt
|
|||
auto name = slider.getName();
|
||||
if (name.isNotEmpty()) {
|
||||
g.setColour(juce::Colour(0xff999999));
|
||||
g.setFont(juce::Font(13.0f).boldened());
|
||||
g.setFont(juce::Font(juce::FontOptions(13.0f).withStyle("Bold")));
|
||||
g.drawText(name, bounds.getX(), bounds.getY(), bounds.getWidth(), labelH,
|
||||
juce::Justification::centredBottom);
|
||||
}
|
||||
|
|
@ -158,7 +158,7 @@ void ComboBoxLookAndFeel::drawPopupMenuItem(juce::Graphics& g, const juce::Recta
|
|||
|
||||
g.setColour(isHighlighted ? juce::Colour(0xff1a1a1a)
|
||||
: (isTicked ? juce::Colour(0xffccaa44) : juce::Colour(0xffcccccc)));
|
||||
g.setFont(juce::Font(13.0f));
|
||||
g.setFont(juce::Font(juce::FontOptions(13.0f)));
|
||||
g.drawText(text, area.reduced(8, 0), juce::Justification::centredLeft, true);
|
||||
}
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ void VuMeter::paint(juce::Graphics& g) {
|
|||
g.drawRoundedRectangle(bounds, 9.0f, 1.0f);
|
||||
|
||||
g.setColour(juce::Colour(0xffccaa44));
|
||||
g.setFont(juce::Font(13.0f).boldened());
|
||||
g.setFont(juce::Font(juce::FontOptions(13.0f).withStyle("Bold")));
|
||||
g.drawText("VU", bounds.withBottom(bounds.getY() + 22.0f).translated(0, 6), juce::Justification::centred);
|
||||
}
|
||||
|
||||
|
|
@ -255,7 +255,7 @@ void WaveformDisplay::paint(juce::Graphics& g) {
|
|||
}
|
||||
|
||||
g.setColour(juce::Colour(0xffccaa44));
|
||||
g.setFont(juce::Font(13.0f).boldened());
|
||||
g.setFont(juce::Font(juce::FontOptions(13.0f).withStyle("Bold")));
|
||||
g.drawText("WAVE", bounds.withBottom(bounds.getY() + 22.0f).translated(0, 6), juce::Justification::centred);
|
||||
}
|
||||
|
||||
|
|
@ -351,7 +351,7 @@ void SpectrumAnalyzer::paint(juce::Graphics& g) {
|
|||
g.strokePath(strokePath, juce::PathStrokeType(1.5f));
|
||||
|
||||
g.setColour(juce::Colour(0xffccaa44));
|
||||
g.setFont(juce::Font(13.0f).boldened());
|
||||
g.setFont(juce::Font(juce::FontOptions(13.0f).withStyle("Bold")));
|
||||
g.drawText("SPECTRUM", bounds.withBottom(bounds.getY() + 22.0f).translated(0, 6), juce::Justification::centred);
|
||||
}
|
||||
|
||||
|
|
@ -633,20 +633,20 @@ MainContentComponent::MainContentComponent(ChromaFlockProcessor& p)
|
|||
}
|
||||
|
||||
scaleLabel.setText("SCALE", juce::dontSendNotification);
|
||||
scaleLabel.setFont(juce::Font(9.0f));
|
||||
scaleLabel.setFont(juce::Font(juce::FontOptions(9.0f)));
|
||||
scaleLabel.setColour(juce::Label::textColourId, juce::Colour(0xff888888));
|
||||
scaleLabel.setJustificationType(juce::Justification::centredRight);
|
||||
addAndMakeVisible(scaleLabel);
|
||||
|
||||
midiLabel.setText("MIDI IN", juce::dontSendNotification);
|
||||
midiLabel.setFont(juce::Font(9.0f));
|
||||
midiLabel.setFont(juce::Font(juce::FontOptions(9.0f)));
|
||||
midiLabel.setColour(juce::Label::textColourId, juce::Colour(0xff888888));
|
||||
midiLabel.setJustificationType(juce::Justification::centredLeft);
|
||||
addAndMakeVisible(midiLabel);
|
||||
|
||||
auto setupTransposeLabel = [&](juce::Label& label, const juce::String& text) {
|
||||
label.setText(text, juce::dontSendNotification);
|
||||
label.setFont(juce::Font(9.0f));
|
||||
label.setFont(juce::Font(juce::FontOptions(9.0f)));
|
||||
label.setColour(juce::Label::textColourId, juce::Colour(0xff888888));
|
||||
label.setJustificationType(juce::Justification::centredLeft);
|
||||
addAndMakeVisible(label);
|
||||
|
|
@ -686,7 +686,7 @@ MainContentComponent::MainContentComponent(ChromaFlockProcessor& p)
|
|||
|
||||
void MainContentComponent::setupLabel(juce::Label& label, const juce::String& text) {
|
||||
label.setText(text, juce::dontSendNotification);
|
||||
label.setFont(juce::Font(13.0f).boldened());
|
||||
label.setFont(juce::Font(juce::FontOptions(13.0f).withStyle("Bold")));
|
||||
label.setColour(juce::Label::textColourId, juce::Colour(0xffccaa44));
|
||||
label.setJustificationType(juce::Justification::centred);
|
||||
addAndMakeVisible(label);
|
||||
|
|
@ -1020,7 +1020,7 @@ void MainContentComponent::paint(juce::Graphics& g) {
|
|||
g.setColour(juce::Colour(0xff333333));
|
||||
g.drawRoundedRectangle(rect, 9.0f, 1.0f);
|
||||
g.setColour(juce::Colour(0xffccaa44));
|
||||
g.setFont(juce::Font(11.0f).boldened());
|
||||
g.setFont(juce::Font(juce::FontOptions(11.0f).withStyle("Bold")));
|
||||
g.drawText(title, x + 6, y + titlePadY, w - 12, 14, juce::Justification::centred);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue