2020-04-03 13:23:19 +02:00
|
|
|
//
|
|
|
|
// 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>
|
|
|
|
|
|
|
|
/**
|
2020-06-08 21:27:17 +02:00
|
|
|
* overwrite the basic m_look and feel based on the selected Look and Feel :)
|
2020-04-03 13:23:19 +02:00
|
|
|
*/
|
2020-06-13 16:52:16 +02:00
|
|
|
class LookHandler : public LookAndFeel_V4
|
|
|
|
{
|
2020-04-03 13:23:19 +02:00
|
|
|
private:
|
2020-06-08 21:27:17 +02:00
|
|
|
std::shared_ptr<LookAndFeel_V4> m_look;
|
|
|
|
int m_currentLook = 0;
|
2020-04-03 13:23:19 +02:00
|
|
|
public:
|
2020-06-13 16:52:16 +02:00
|
|
|
LookHandler ();
|
|
|
|
~LookHandler () override;
|
|
|
|
void selectLook (int index);
|
|
|
|
LookAndFeel_V4* getLook ();
|
2020-04-03 13:23:19 +02:00
|
|
|
protected:
|
|
|
|
//currently both available themes are CrazyLook <-- (this is a fun one xD) and FlatLook
|
2020-06-13 16:52:16 +02:00
|
|
|
LookAndFeel_V4* m_feels[2] = {new FlatLook (), new CrazyLook ()};
|
2020-04-03 13:23:19 +02:00
|
|
|
};
|
|
|
|
#endif //VENO_LOOKHANDLER_H
|