first commit

This commit is contained in:
VersusTune 2020-04-03 13:23:19 +02:00
commit 452c5cabba
20 changed files with 863 additions and 0 deletions

View file

@ -0,0 +1,5 @@
//
// Created by versustune on 17.03.20.
//
#include "CrazyLook.h"

View file

@ -0,0 +1,17 @@
//
// Created by versustune on 17.03.20.
//
#ifndef VENO_CRAZYLOOK_H
#define VENO_CRAZYLOOK_H
#include "JuceHeader.h"
class CrazyLook : public LookAndFeel_V4 {
private:
public:
protected:
};
#endif //VENO_CRAZYLOOK_H

View file

@ -0,0 +1,5 @@
//
// Created by versustune on 17.03.20.
//
#include "FlatLook.h"

View file

@ -0,0 +1,17 @@
//
// Created by versustune on 17.03.20.
//
#ifndef VENO_FLATLOOK_H
#define VENO_FLATLOOK_H
#include "JuceHeader.h"
class FlatLook : public LookAndFeel_V4 {
private:
public:
protected:
};
#endif //VENO_FLATLOOK_H

View file

@ -0,0 +1,20 @@
//
// Created by versustune on 17.03.20.
//
#include "LookHandler.h"
#include "../../Core/Config.h"
LookHandler::LookHandler() {
selectLook(Config::getInstance()->getCurrentLook());
}
LookHandler::~LookHandler() {
//delete this shit!
delete feels[0];
delete feels[1];
}
void LookHandler::selectLook(int index) {
currentLook = index;
}

View file

@ -0,0 +1,30 @@
//
// Created by versustune on 17.03.20.
//
#ifndef VENO_LOOKHANDLER_H
#define VENO_LOOKHANDLER_H
#include "JuceHeader.h"
#include "CrazyLook.h"
#include "FlatLook.h"
#include <memory>
/**
* overwrite the basic look and feel based on the selected Look and Feel :)
*/
class LookHandler : public LookAndFeel_V4 {
private:
std::shared_ptr<LookAndFeel_V4> look;
int currentLook = 0;
public:
LookHandler();
~LookHandler();
void selectLook(int index);
protected:
//currently both available themes are CrazyLook <-- (this is a fun one xD) and FlatLook
LookAndFeel_V4 *feels[2] = {new FlatLook(), new CrazyLook()};
};
#endif //VENO_LOOKHANDLER_H