Use older Juce look and feel for the file browser. Not looking too great but better than the current default look and feel...

This commit is contained in:
xenakios 2019-02-19 20:21:39 +02:00
parent 6c9cca5213
commit c90f6c9022
2 changed files with 4 additions and 0 deletions

View File

@ -247,6 +247,8 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
PaulstretchpluginAudioProcessorEditor::~PaulstretchpluginAudioProcessorEditor()
{
if (m_filechooser)
m_filechooser->setLookAndFeel(nullptr);
//Logger::writeToLog("PaulX Editor destroyed");
}
@ -581,6 +583,7 @@ void PaulstretchpluginAudioProcessorEditor::toggleFileBrowser()
if (m_filechooser == nullptr)
{
m_filechooser = std::make_unique<MyFileBrowserComponent>(processor);
m_filechooser->setLookAndFeel(&m_filebwlookandfeel);
addChildComponent(m_filechooser.get());
}
m_filechooser->setBounds(0, 26, getWidth()/2, getHeight() - 75);

View File

@ -487,6 +487,7 @@ private:
std::unique_ptr<MyFileBrowserComponent> m_filechooser;
WildcardFileFilter m_filefilter;
LookAndFeel_V3 m_filebwlookandfeel;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor)
};