37 lines
1.6 KiB
C++
37 lines
1.6 KiB
C++
#include "Theme.h"
|
|
|
|
/*
|
|
* this file holds function that read some presets
|
|
* in the current Theme class
|
|
* so we doesn't have lot's of classes that only save some hex codes... and make the coding harder
|
|
* also good on this is that the user can slightly change the preset theme and doesn't have to make all of them himself
|
|
*
|
|
* maybe i want a double look and feel... that's make it easier to implement different knob styles, slider styles and co
|
|
*/
|
|
|
|
void setLEDTheme(Theme *theme) {
|
|
theme->setColour(ThemeColour::bg, new Colour(41, 47, 54));
|
|
theme->setColour(ThemeColour::bg_two, new Colour(217, 217, 217));
|
|
theme->setColour(ThemeColour::accent, new Colour(169, 208, 142));
|
|
theme->setColour(ThemeColour::accent_two, new Colour(139, 171, 117));
|
|
theme->setColour(ThemeColour::clip, new Colour(255, 23, 68));
|
|
theme->setColour(ThemeColour::warning, new Colour(255, 143, 0));
|
|
theme->setColour(ThemeColour::lcd_bg, new Colour(21, 21, 21));
|
|
theme->setColour(ThemeColour::lcd, new Colour(169, 208, 142));
|
|
}
|
|
|
|
|
|
std::string ThemeColourToString(ThemeColour index) {
|
|
switch (index)
|
|
{
|
|
case ThemeColour::bg: return "colour_bg";
|
|
case ThemeColour::bg_two: return "colour_bg_two";
|
|
case ThemeColour::accent: return "colour_accent";
|
|
case ThemeColour::accent_two: return "colour_accent_two";
|
|
case ThemeColour::clip: return "colour_clip";
|
|
case ThemeColour::warning: return "colour_warning";
|
|
case ThemeColour::lcd_bg: return "colour_lcd_bg";
|
|
case ThemeColour::lcd: return "colour_lcd";
|
|
default: return "";
|
|
}
|
|
} |