|
|
@@ -408,8 +408,9 @@ struct MidiWidget : LedDisplay { |
|
|
|
//////////////////// |
|
|
|
|
|
|
|
struct LightWidget : TransparentWidget { |
|
|
|
NVGcolor borderColor = nvgRGBA(0, 0, 0, 0); |
|
|
|
NVGcolor bgColor = nvgRGBA(0, 0, 0, 0); |
|
|
|
NVGcolor color = nvgRGBA(0, 0, 0, 0); |
|
|
|
NVGcolor borderColor = nvgRGBA(0, 0, 0, 0); |
|
|
|
void draw(NVGcontext *vg) override; |
|
|
|
virtual void drawLight(NVGcontext *vg); |
|
|
|
virtual void drawHalo(NVGcontext *vg); |
|
|
@@ -417,8 +418,6 @@ struct LightWidget : TransparentWidget { |
|
|
|
|
|
|
|
/** Mixes a list of colors based on a list of brightness values */ |
|
|
|
struct MultiLightWidget : LightWidget { |
|
|
|
/** Color of the "off" state */ |
|
|
|
NVGcolor bgColor = nvgRGBA(0, 0, 0, 0); |
|
|
|
/** Colors of each value state */ |
|
|
|
std::vector<NVGcolor> baseColors; |
|
|
|
void addBaseColor(NVGcolor baseColor); |
|
|
|