reVeno/Source/Veno/GUI/Theme/ThemePresets.cpp

87 lines
3.4 KiB
C++
Raw Normal View History

2020-04-03 13:23:19 +02:00
#include "Theme.h"
2020-06-14 21:14:28 +02:00
#ifndef VENO_THEME_PRESETS
#define VENO_THEME_PRESETS
2020-04-03 13:23:19 +02:00
/*
* 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 m_theme and doesn't have to make all of them himself
2020-04-03 13:23:19 +02:00
*
* maybe i want a double m_look and feel... that's make it easier to implement different knob styles, slider styles and co
2020-04-03 13:23:19 +02:00
*/
void setLEDTheme (Theme* theme)
{
2020-06-14 21:14:28 +02:00
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));
2020-04-03 13:23:19 +02:00
}
void setBloodTheme (Theme* theme)
{
2020-06-14 21:14:28 +02:00
theme->setColour(ThemeColour::bg, new Colour(41, 47, 54));
theme->setColour(ThemeColour::bg_two, new Colour(64, 67, 78));
theme->setColour(ThemeColour::accent, new Colour(180, 38, 50));
theme->setColour(ThemeColour::accent_two, new Colour(115, 47, 64));
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(43, 0, 0));
theme->setColour(ThemeColour::lcd, new Colour(255, 0, 0));
2020-06-13 10:56:20 +02:00
}
void setOrangeDreamTheme (Theme* theme)
{
2020-06-14 21:14:28 +02:00
theme->setColour(ThemeColour::bg, new Colour(21, 21, 21));
theme->setColour(ThemeColour::bg_two, new Colour(42, 42, 42));
theme->setColour(ThemeColour::accent, new Colour(255, 160, 0));
theme->setColour(ThemeColour::accent_two, new Colour(255, 11, 0));
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(33, 33, 33));
theme->setColour(ThemeColour::lcd, new Colour(255, 160, 0));
2020-06-13 10:56:20 +02:00
}
void setOceanTheme (Theme* theme)
{
2020-06-14 21:14:28 +02:00
theme->setColour(ThemeColour::bg, new Colour(55, 63, 81));
theme->setColour(ThemeColour::bg_two, new Colour(64, 67, 78));
theme->setColour(ThemeColour::accent, new Colour(0, 141, 213));
theme->setColour(ThemeColour::accent_two, new Colour(0, 129, 194));
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(0, 129, 194));
2020-06-13 10:56:20 +02:00
}
std::string ThemeColourToString (ThemeColour index)
{
switch (index)
{
2020-06-13 10:56:20 +02:00
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 "";
2020-04-03 13:23:19 +02:00
}
2020-06-14 21:14:28 +02:00
}
#endif