mirror of
https://codeberg.org/armin/monostep.git
synced 2026-09-01 04:10:46 +02:00
apply jellybeans color scheme
This commit is contained in:
parent
8925199aa3
commit
a45006c201
3 changed files with 48 additions and 23 deletions
|
|
@ -21,6 +21,16 @@ juce::ColourGradient orangeGradient (const juce::Rectangle<float>& area)
|
|||
colours::accent.darker (0.35f), bottom,
|
||||
false);
|
||||
}
|
||||
|
||||
juce::ColourGradient sectionGradient (const juce::Rectangle<float>& area)
|
||||
{
|
||||
const auto top = area.getTopLeft().translated (area.getWidth() * 0.5f, 0.0f);
|
||||
const auto bottom = area.getBottomLeft().translated (area.getWidth() * 0.5f, 0.0f);
|
||||
|
||||
return juce::ColourGradient (colours::section, top,
|
||||
colours::section.darker (0.35f), bottom,
|
||||
false);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -896,7 +906,7 @@ void MonostepAudioProcessorEditor::paintContent (juce::Graphics& g)
|
|||
const int capY = first.getY() - 13;
|
||||
|
||||
const juce::Rectangle<float> legend (capX - 6.0f, capY - 4.0f, (float) capW + 12.0f, 12.0f);
|
||||
g.setGradientFill (orangeGradient (legend));
|
||||
g.setGradientFill (sectionGradient (legend));
|
||||
g.fillRoundedRectangle (legend, 3.0f);
|
||||
|
||||
g.setFont (font (9.0f).boldened());
|
||||
|
|
@ -905,7 +915,7 @@ void MonostepAudioProcessorEditor::paintContent (juce::Graphics& g)
|
|||
|
||||
auto box = groupBox (first, last, pad);
|
||||
box.setLeft (box.getX() - leftPad);
|
||||
g.setColour (colours::accent.withAlpha (0.30f));
|
||||
g.setColour (colours::section.withAlpha (0.30f));
|
||||
g.drawRoundedRectangle (box, 3.0f, 1.0f);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue