Use Google Turbo Color for Default Theme WF colors (#748)

* Use Google Turbo Color for Default Theme WF colors

* Added Default Jet Waterfall as the old WF color theme

* Oups duplicate IDs for widgets is wrong
This commit is contained in:
Vincent Sonnier
2019-09-23 07:24:04 +02:00
committed by GitHub
parent e0d1e2b6ff
commit 4f7dcd4d89
6 changed files with 69 additions and 21 deletions
+12
View File
@@ -5,13 +5,25 @@
#include <stddef.h>
Gradient::Gradient() {
//nothing
}
void Gradient::clear() {
colors.clear();
}
void Gradient::addColor(GradientColor c) {
colors.push_back(c);
}
void Gradient::addColors(const std::vector<GradientColor>& color_list) {
for (auto single_color : color_list) {
colors.push_back(single_color);
}
}
std::vector<float> &Gradient::getRed() {
return r_val;
}
+4
View File
@@ -21,6 +21,10 @@ public:
void addColor(GradientColor c);
void clear();
void addColors(const std::vector<GradientColor>& color_list);
std::vector<float> &getRed();
std::vector<float> &getGreen();
std::vector<float> &getBlue();