Browse Source

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

master
xenakios 6 years ago
parent
commit
c90f6c9022
2 changed files with 4 additions and 0 deletions
  1. +3
    -0
      Source/PluginEditor.cpp
  2. +1
    -0
      Source/PluginEditor.h

+ 3
- 0
Source/PluginEditor.cpp 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);


+ 1
- 0
Source/PluginEditor.h 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)
};


Loading…
Cancel
Save