1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

juce_audio_processors_headless: Remove juce_graphics dependency

This commit is contained in:
reuk 2025-08-21 22:10:19 +01:00
parent 86123aeddf
commit 50b51f512a
No known key found for this signature in database
12 changed files with 170 additions and 136 deletions

View file

@ -1440,7 +1440,7 @@ public:
void paint (Graphics& g) override
{
g.fillAll (convertOptionalARAColour (playbackRegion.getEffectiveColor(), Colours::black));
g.fillAll (Colour { convertOptionalARAColour (playbackRegion.getEffectiveColor()) });
const auto* audioModification = playbackRegion.getAudioModification<ARADemoPluginAudioModification>();
g.setColour (audioModification->isDimmed() ? Colours::darkgrey.darker() : Colours::darkgrey.brighter());
@ -1827,7 +1827,7 @@ public:
if (auto colour = regionSequence.getColor())
{
g.setColour (convertARAColour (colour));
g.setColour (Colour { convertARAColourARGB (colour) });
g.fillRect (getLocalBounds().removeFromTop (16).reduced (6));
g.fillRect (getLocalBounds().removeFromBottom (16).reduced (6));
}

View file

@ -468,10 +468,10 @@ private:
void updateTrackProperties()
{
auto trackColour = getProcessor().getTrackProperties().colour;
auto trackColour = getProcessor().getTrackProperties().colourARGB;
auto& lf = getLookAndFeel();
backgroundColour = (trackColour.has_value() ? trackColour->withAlpha (1.0f).withBrightness (0.266f)
backgroundColour = (trackColour.has_value() ? Colour { *trackColour }.withAlpha (1.0f).withBrightness (0.266f)
: lf.findColour (ResizableWindow::backgroundColourId));
repaint();
}