GUI tweak
This commit is contained in:
parent
fe0fd35021
commit
266f2b8e61
@ -207,7 +207,7 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
|
|||||||
};
|
};
|
||||||
m_wave_container->addAndMakeVisible(&m_wavecomponent);
|
m_wave_container->addAndMakeVisible(&m_wavecomponent);
|
||||||
m_wavefilter_tab.addTab("Waveform", Colours::white, m_wave_container, true);
|
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);
|
m_wavefilter_tab.addTab("Free filter", Colours::white, &m_free_filter_component, false);
|
||||||
|
|
||||||
addAndMakeVisible(&m_wavefilter_tab);
|
addAndMakeVisible(&m_wavefilter_tab);
|
||||||
@ -1407,6 +1407,7 @@ RatioMixerEditor::RatioMixerEditor(int numratios)
|
|||||||
m_ratio_level_sliders.emplace_back(std::move(ratlevslid));
|
m_ratio_level_sliders.emplace_back(std::move(ratlevslid));
|
||||||
}
|
}
|
||||||
startTimer(200);
|
startTimer(200);
|
||||||
|
setOpaque(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RatioMixerEditor::resized()
|
void RatioMixerEditor::resized()
|
||||||
@ -1432,3 +1433,8 @@ void RatioMixerEditor::timerCallback()
|
|||||||
m_ratio_level_sliders[i]->setValue(v, dontSendNotification);
|
m_ratio_level_sliders[i]->setValue(v, dontSendNotification);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RatioMixerEditor::paint(Graphics & g)
|
||||||
|
{
|
||||||
|
g.fillAll(Colours::grey);
|
||||||
|
}
|
||||||
|
@ -218,6 +218,7 @@ public:
|
|||||||
std::function<void(int, double)> OnRatioLevelChanged;
|
std::function<void(int, double)> OnRatioLevelChanged;
|
||||||
std::function<double(int which, int index)> GetParameterValue;
|
std::function<double(int which, int index)> GetParameterValue;
|
||||||
void timerCallback() override;
|
void timerCallback() override;
|
||||||
|
void paint(Graphics& g) override;
|
||||||
private:
|
private:
|
||||||
uptrvec<Slider> m_ratio_sliders;
|
uptrvec<Slider> m_ratio_sliders;
|
||||||
uptrvec<Slider> m_ratio_level_sliders;
|
uptrvec<Slider> m_ratio_level_sliders;
|
||||||
|
Loading…
Reference in New Issue
Block a user