- reformat to JUCE-Guidelines
- added Matrix => half working ;)
This commit is contained in:
parent
26a2935e1c
commit
ac22ea5e75
58 changed files with 1220 additions and 799 deletions
|
|
@ -7,11 +7,10 @@
|
|||
|
||||
#include "JuceHeader.h"
|
||||
|
||||
class CrazyLook : public LookAndFeel_V4 {
|
||||
class CrazyLook : public LookAndFeel_V4
|
||||
{
|
||||
private:
|
||||
public:
|
||||
protected:
|
||||
};
|
||||
|
||||
|
||||
#endif //VENO_CRAZYLOOK_H
|
||||
|
|
|
|||
|
|
@ -7,11 +7,10 @@
|
|||
|
||||
#include "JuceHeader.h"
|
||||
|
||||
class FlatLook : public LookAndFeel_V4 {
|
||||
class FlatLook : public LookAndFeel_V4
|
||||
{
|
||||
private:
|
||||
public:
|
||||
protected:
|
||||
};
|
||||
|
||||
|
||||
#endif //VENO_FLATLOOK_H
|
||||
|
|
|
|||
|
|
@ -5,20 +5,24 @@
|
|||
#include "LookHandler.h"
|
||||
#include "../../Core/Config.h"
|
||||
|
||||
LookHandler::LookHandler() {
|
||||
selectLook(Config::getInstance()->getCurrentLook());
|
||||
LookHandler::LookHandler ()
|
||||
{
|
||||
selectLook (Config::getInstance ()->getCurrentLook ());
|
||||
}
|
||||
|
||||
LookHandler::~LookHandler() {
|
||||
LookHandler::~LookHandler ()
|
||||
{
|
||||
//delete this shit!
|
||||
delete m_feels[0];
|
||||
delete m_feels[1];
|
||||
}
|
||||
|
||||
void LookHandler::selectLook(int index) {
|
||||
void LookHandler::selectLook (int index)
|
||||
{
|
||||
m_currentLook = index;
|
||||
}
|
||||
|
||||
LookAndFeel_V4* LookHandler::getLook() {
|
||||
LookAndFeel_V4* LookHandler::getLook ()
|
||||
{
|
||||
return m_feels[m_currentLook];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,19 +13,18 @@
|
|||
/**
|
||||
* overwrite the basic m_look and feel based on the selected Look and Feel :)
|
||||
*/
|
||||
class LookHandler : public LookAndFeel_V4 {
|
||||
class LookHandler : public LookAndFeel_V4
|
||||
{
|
||||
private:
|
||||
std::shared_ptr<LookAndFeel_V4> m_look;
|
||||
int m_currentLook = 0;
|
||||
public:
|
||||
LookHandler();
|
||||
~LookHandler() override;
|
||||
void selectLook(int index);
|
||||
LookAndFeel_V4* getLook();
|
||||
LookHandler ();
|
||||
~LookHandler () override;
|
||||
void selectLook (int index);
|
||||
LookAndFeel_V4* getLook ();
|
||||
protected:
|
||||
//currently both available themes are CrazyLook <-- (this is a fun one xD) and FlatLook
|
||||
LookAndFeel_V4 *m_feels[2] = {new FlatLook(), new CrazyLook()};
|
||||
LookAndFeel_V4* m_feels[2] = {new FlatLook (), new CrazyLook ()};
|
||||
};
|
||||
|
||||
|
||||
#endif //VENO_LOOKHANDLER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue