This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
43
Wiki
Activity
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
30c64c5e93
commit
e51d4387da
1 changed files
with
4 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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));
nvgFillPaint(args.vg, nvgBoxGradient(args.vg, 0, 0, box.size.x, box.size.y, c, r, shadowColor, transparentColor));
nvgFill(args.vg);
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);
OpaqueWidget::draw(args);
}
}
Write
Preview
Loading…
Cancel
Save