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

33 lines
664 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 {
bg = 0, bg_two, accent, accent_two, warning, clip, lcd_bg, lcd
};
class Theme {
private:
public:
2020-06-13 10:56:20 +02:00
explicit Theme(std::shared_ptr<PropertiesFile> file);
2020-04-03 13:23:19 +02:00
~Theme();
void setColour(ThemeColour index, Colour *colour);
2020-06-13 10:56:20 +02:00
void setColourThemeById(int id);
2020-04-03 13:23:19 +02:00
void init();
void getColourFromConfig(ThemeColour index);
2020-06-13 10:56:20 +02:00
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