1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

changed the look and feel classes, to make "shiny" the new default look, and moved the old look into an OldSchoolLookAndFeel class.

This commit is contained in:
jules 2007-06-20 13:14:27 +00:00
parent 1bb0bf0b36
commit 205304c3a9
23 changed files with 1689 additions and 1666 deletions

View file

@ -68,27 +68,11 @@ static const String ppqToBarsBeatsString (const double ppq,
return s;
}
//==============================================================================
// just a quick way of using a single static look and feel object without
// it getting leaked when the plugin is deleted..
class AutoDeletedLookAndFeel : public ShinyLookAndFeel,
public DeletedAtShutdown
{
public:
AutoDeletedLookAndFeel() {}
};
//==============================================================================
DemoEditorComponent::DemoEditorComponent (DemoJuceFilter* const ownerFilter)
: AudioFilterEditor (ownerFilter)
{
static ShinyLookAndFeel* shinyLook = 0;
if (shinyLook == 0)
shinyLook = new AutoDeletedLookAndFeel();
LookAndFeel::setDefaultLookAndFeel (shinyLook);
// create our gain slider..
addAndMakeVisible (gainSlider = new Slider (T("gain")));
gainSlider->addListener (this);