reVeno/Source/Veno/GUI/Theme/Theme.h

31 lines
667 B
C
Raw Normal View History

2020-04-03 13:23:19 +02:00
//
// Created by versustune on 01.03.20.
//
#ifndef VENO_THEME_H
#define VENO_THEME_H
#include "JuceHeader.h"
#include <vector>
enum class ThemeColour
{
2020-04-03 13:23:19 +02:00
bg = 0, bg_two, accent, accent_two, warning, clip, lcd_bg, lcd
};
class Theme
{
2020-04-03 13:23:19 +02:00
private:
public:
explicit Theme (std::shared_ptr<PropertiesFile> file);
~Theme ();
void setColour (ThemeColour index, Colour* colour);
void setColourThemeById (int id);
void init ();
void getColourFromConfig (ThemeColour index);
Colour getColour (ThemeColour index);
2020-04-03 13:23:19 +02:00
protected:
std::map<ThemeColour, Colour*> m_colours;
std::shared_ptr<PropertiesFile> m_configFile;
2020-04-03 13:23:19 +02:00
};
#endif //VENO_THEME_H