mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-02 22:14:47 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user