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

AudioProcessor: Use std::optional in TrackProperties

This commit is contained in:
Oliver James 2024-11-15 20:00:41 +00:00
parent 59ca34daaf
commit 9b959bd223
9 changed files with 42 additions and 17 deletions

View file

@ -470,8 +470,8 @@ private:
auto trackColour = getProcessor().getTrackProperties().colour;
auto& lf = getLookAndFeel();
backgroundColour = (trackColour == Colour() ? lf.findColour (ResizableWindow::backgroundColourId)
: trackColour.withAlpha (1.0f).withBrightness (0.266f));
backgroundColour = (trackColour.has_value() ? trackColour->withAlpha (1.0f).withBrightness (0.266f)
: lf.findColour (ResizableWindow::backgroundColourId));
repaint();
}