Skip to content

Commit

Permalink
waveformView background colour made public (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
RachelMaryamLocke authored Jul 24, 2023
1 parent 0a002e2 commit 138dbda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void WaveformView<numChannels>::pushChannel (int channelIndex, const nonstd::spa
template <int numChannels>
void WaveformView<numChannels>::paint (juce::Graphics& g)
{
g.fillAll (juce::Colours::whitesmoke);
g.fillAll (backgroundColour);

auto bounds = getLocalBounds().toFloat();
for (auto [ch, c] : chowdsp::enumerate (channels))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class WaveformView : public juce::Component,
void paint (juce::Graphics& g) override;
virtual void paintChannel (int channelIndex, juce::Graphics&, juce::Rectangle<float> bounds, const juce::Range<float>* levels, int numLevels, int nextSample);
void visibilityChanged() override;
juce::Colour backgroundColour = juce::Colours::whitesmoke;

protected:
void timerCallback() override { repaint(); }
Expand Down

0 comments on commit 138dbda

Please sign in to comment.