Browse Source

Set relative alpha/tint instead of global in Svg::draw(), and ModuleWidget when bypassed.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
d44f7b1d81
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/app/ModuleWidget.cpp
  2. +1
    -1
      src/svg.cpp

+ 1
- 1
src/app/ModuleWidget.cpp View File

@@ -523,7 +523,7 @@ void ModuleWidget::draw(const DrawArgs& args) {
nvgScissor(args.vg, RECT_ARGS(args.clipBox));

if (module && module->isBypassed()) {
nvgGlobalAlpha(args.vg, 0.33);
nvgAlpha(args.vg, 0.33);
}

Widget::draw(args);


+ 1
- 1
src/svg.cpp View File

@@ -176,7 +176,7 @@ void svgDraw(NVGcontext* vg, NSVGimage* svg) {

// Opacity
if (shape->opacity < 1.0)
nvgGlobalAlpha(vg, shape->opacity);
nvgAlpha(vg, shape->opacity);

// Build path
nvgBeginPath(vg);


Loading…
Cancel
Save