Browse Source

Don't set Desktop singleton L&F in AUv3Synth plug-in example

tags/2021-05-28
ed 5 years ago
parent
commit
2b522403bd
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      examples/Plugins/AUv3SynthPluginDemo.h

+ 6
- 1
examples/Plugins/AUv3SynthPluginDemo.h View File

@@ -187,7 +187,7 @@ public:
: AudioProcessorEditor (processorIn),
roomSizeSlider (Slider::LinearHorizontal, Slider::NoTextBox)
{
LookAndFeel::setDefaultLookAndFeel (&materialLookAndFeel);
setLookAndFeel (&materialLookAndFeel);
roomSizeSlider.setValue (getParameterValue ("roomSize"), NotificationType::dontSendNotification);
@@ -213,6 +213,11 @@ public:
startTimer (100);
}
~AUv3SynthEditor() override
{
setLookAndFeel (nullptr);
}
//==============================================================================
void paint (Graphics& g) override
{


Loading…
Cancel
Save