GUI tweak

This commit is contained in:
xenakios 2018-04-03 22:04:10 +03:00
parent fe0fd35021
commit 266f2b8e61
2 changed files with 8 additions and 1 deletions

View File

@ -207,7 +207,7 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
};
m_wave_container->addAndMakeVisible(&m_wavecomponent);
m_wavefilter_tab.addTab("Waveform", Colours::white, m_wave_container, true);
m_wavefilter_tab.addTab("Ratio mixer", Colours::grey, &m_ratiomixeditor, false);
m_wavefilter_tab.addTab("Ratio mixer", Colours::white, &m_ratiomixeditor, false);
m_wavefilter_tab.addTab("Free filter", Colours::white, &m_free_filter_component, false);
addAndMakeVisible(&m_wavefilter_tab);
@ -1407,6 +1407,7 @@ RatioMixerEditor::RatioMixerEditor(int numratios)
m_ratio_level_sliders.emplace_back(std::move(ratlevslid));
}
startTimer(200);
setOpaque(true);
}
void RatioMixerEditor::resized()
@ -1432,3 +1433,8 @@ void RatioMixerEditor::timerCallback()
m_ratio_level_sliders[i]->setValue(v, dontSendNotification);
}
}
void RatioMixerEditor::paint(Graphics & g)
{
g.fillAll(Colours::grey);
}

View File

@ -218,6 +218,7 @@ public:
std::function<void(int, double)> OnRatioLevelChanged;
std::function<double(int which, int index)> GetParameterValue;
void timerCallback() override;
void paint(Graphics& g) override;
private:
uptrvec<Slider> m_ratio_sliders;
uptrvec<Slider> m_ratio_level_sliders;