I am looking at making a custom LookAndFeel class, but wanted some advice on a few things.
Where is the best place to store the class? I moved it to my JUCE projects folder, but I’m unsure if that’s the best spot and how to link all the headers? Absolute paths, or relative paths? I’m pretty new to linking files like this so any thoughts would be super helpful.
I went and did a Find a Replace in the .h and .cpp for LookAndFeel with My_Custom_LookAndFeel… is this right?
Sorry if the above post wasn’t clear, but that was my intention (to avoid modifying the JUCE source code files directly). I made a duplicate of the LookAndFeel class figuring I needed to make a custom version. Having done this, I wasn’t sure where to put it, etc. I knew that I had to call LookAndFeel::setDefaultLookAndFeel(), and pass in a custom version… but I’m unsure the best way to go about making the custom version.
You mention “You do it by creating a new instance of your derived LookAndFeel” , so should I:
SubClass LookAndFeel and over ride the functions I want?
Make a duplicate copy of the LookAndFeel .h and .cpp and modify that copy? If so, how to link and where to put?
Regardless of the correct approach, once I have my custom version I will do as you say and in the JUCEApplication::initialise(), call LookAndFeel::setDefaultLookAndFeel().
I started with the duplicate, but it seemed like possibly the wrong approach,… hence my post