Browse Source

To avoid blinding the user when rack brightness is low, draw Module Browser modules with the same brightness.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
e51d4387da
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/app/ModuleBrowser.cpp

+ 4
- 0
src/app/ModuleBrowser.cpp View File

@@ -198,6 +198,10 @@ struct ModelBox : widget::OpaqueWidget {
nvgFillPaint(args.vg, nvgBoxGradient(args.vg, 0, 0, box.size.x, box.size.y, c, r, shadowColor, transparentColor));
nvgFill(args.vg);

// To avoid blinding the user when rack brightness is low, draw framebuffer with the same brightness.
float b = settings::rackBrightness;
nvgGlobalTint(args.vg, nvgRGBAf(b, b, b, 1));

OpaqueWidget::draw(args);
}



Loading…
Cancel
Save