Skip to content

Commit

Permalink
Adjust fundamental for light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Sep 14, 2022
1 parent 9116eb6 commit 9442c9b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Fundamental
20 changes: 20 additions & 0 deletions src/custom/dep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ static const struct {
{ kModeFundamental, "/Fundamental/res/VCO.svg", {}, -1 },
{ kModeFundamental, "/Fundamental/res/WTLFO.svg", {}, -1 },
{ kModeFundamental, "/Fundamental/res/WTVCO.svg", {}, -1 },
{ kModeFundamental, "/Fundamental/res/components/ADSR-bg.svg", {}, -1 },
{ kModeFundamental, "/Fundamental/res/components/Scope-bg.svg", {}, -1 },
// GPLv3+
{ kModeGoodSheperd, "/GoodSheperd/res/Holzschnabel.svg", {}, -1 },
{ kModeGoodSheperd, "/GoodSheperd/res/Hurdle.svg", {}, -1 },
Expand Down Expand Up @@ -939,6 +941,24 @@ bool invertPaintForLightMode(const LightMode mode, NSVGshape* const shape, NSVGp
return false;
}
break;
case kModeFundamental:
switch (paint.color)
{
case 0xc0000000:
paint.color = 0xe6000000;
return true;
case 0xff909092:
paint.color = 0xff000000;
return true;
case 0xff000000:
if (shape->opacity == 0.5f)
{
shape->opacity = 0.9f;
return false;
}
break;
}
break;
case kModeGoodSheperd:
switch (paint.color)
{
Expand Down

0 comments on commit 9442c9b

Please sign in to comment.