Browse Source

Revert light glow intensity

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
875b1762fa
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      dep/oui-blendish
  2. +2
    -2
      src/app/LightWidget.cpp
  3. +1
    -1
      src/app/ModuleBrowser.cpp

+ 1
- 1
dep/oui-blendish

@@ -1 +1 @@
Subproject commit b7066201022a757cbcbd986d8c91d565e4daef90
Subproject commit 383f24f6ed41facf25eda0d32b0f6bc9aee96e53

+ 2
- 2
src/app/LightWidget.cpp View File

@@ -32,13 +32,13 @@ void LightWidget::drawLight(NVGcontext *vg) {

void LightWidget::drawHalo(NVGcontext *vg) {
float radius = box.size.x / 2.0;
float oradius = radius + 20.0;
float oradius = radius + 15.0;

nvgBeginPath(vg);
nvgRect(vg, radius - oradius, radius - oradius, 2*oradius, 2*oradius);

NVGpaint paint;
NVGcolor icol = colorMult(color, 0.10);
NVGcolor icol = colorMult(color, 0.08);
NVGcolor ocol = nvgRGB(0, 0, 0);
paint = nvgRadialGradient(vg, radius, radius, radius, oradius, icol, ocol);
nvgFillPaint(vg, paint);


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

@@ -59,7 +59,7 @@ struct SeparatorItem : OpaqueWidget {
Label *label = Widget::create<Label>(Vec(0, 12 + itemMargin));
label->text = text;
label->fontSize = 20;
label->color.a *= 0.25;
label->color.a *= 0.5;
addChild(label);
}
};


Loading…
Cancel
Save