Browse Source

Increase brightness of ModelBoxes in dark room mode.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
448836a8aa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/app/Browser.cpp

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

@@ -204,7 +204,7 @@ struct ModelBox : widget::OpaqueWidget {
nvgFill(args.vg);

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

OpaqueWidget::draw(args);


Loading…
Cancel
Save