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:
parent
59ca34daaf
commit
9b959bd223
9 changed files with 42 additions and 17 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue