Hello there.
I’ve been trying to get a basic version of LookAndFeel working but no no avail. I have a simple class inherited from LookAndFeel:
#ifndef ZENITLOOKANDFEEL_H_INCLUDED
#define ZENITLOOKANDFEEL_H_INCLUDED
#include “…/JuceLibraryCode/JuceHeader.h”
class ZenitLookAndFeel : public LookAndFeel_V3
{
Font getTextButtonFont (TextButton&, int) override
{
Font smallFont;
smallFont.setHeight (10);
return smallFont;
};
};
#endif
…and in a separate component class a member of type ZenitLookAndFeel called zlaf. In the body I have the code:
saveAsEnvelopeButton.setLookAndFeel (zlaf);
…however I get the error:
No viable conversion from ‘ZenitLookAndFeel’ to ‘juce::LookAndFeel *’
I inherited from LookAndFeel, and it all seems like it is in the examples. What’s going wrong?
Thank you.