first commit
This commit is contained in:
commit
452c5cabba
20 changed files with 863 additions and 0 deletions
5
Source/Veno/GUI/LookAndFeel/CrazyLook.cpp
Normal file
5
Source/Veno/GUI/LookAndFeel/CrazyLook.cpp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
//
|
||||
// Created by versustune on 17.03.20.
|
||||
//
|
||||
|
||||
#include "CrazyLook.h"
|
||||
17
Source/Veno/GUI/LookAndFeel/CrazyLook.h
Normal file
17
Source/Veno/GUI/LookAndFeel/CrazyLook.h
Normal 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
|
||||
5
Source/Veno/GUI/LookAndFeel/FlatLook.cpp
Normal file
5
Source/Veno/GUI/LookAndFeel/FlatLook.cpp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
//
|
||||
// Created by versustune on 17.03.20.
|
||||
//
|
||||
|
||||
#include "FlatLook.h"
|
||||
17
Source/Veno/GUI/LookAndFeel/FlatLook.h
Normal file
17
Source/Veno/GUI/LookAndFeel/FlatLook.h
Normal 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
|
||||
20
Source/Veno/GUI/LookAndFeel/LookHandler.cpp
Normal file
20
Source/Veno/GUI/LookAndFeel/LookHandler.cpp
Normal 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;
|
||||
}
|
||||
30
Source/Veno/GUI/LookAndFeel/LookHandler.h
Normal file
30
Source/Veno/GUI/LookAndFeel/LookHandler.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue