diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index d9d6317..f361a5d 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -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(processor); + m_filechooser->setLookAndFeel(&m_filebwlookandfeel); addChildComponent(m_filechooser.get()); } m_filechooser->setBounds(0, 26, getWidth()/2, getHeight() - 75); diff --git a/Source/PluginEditor.h b/Source/PluginEditor.h index 846faf4..26fed0b 100644 --- a/Source/PluginEditor.h +++ b/Source/PluginEditor.h @@ -487,6 +487,7 @@ private: std::unique_ptr m_filechooser; WildcardFileFilter m_filefilter; + LookAndFeel_V3 m_filebwlookandfeel; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor) };