From 9442c9b620d1b1823cb4e581093d0836006eb6e7 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 14 Sep 2022 17:49:59 +0100 Subject: [PATCH] Adjust fundamental for light mode --- plugins/Fundamental | 2 +- src/custom/dep.cpp | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/plugins/Fundamental b/plugins/Fundamental index 9ac0cdb9..63d54b65 160000 --- a/plugins/Fundamental +++ b/plugins/Fundamental @@ -1 +1 @@ -Subproject commit 9ac0cdb93938c3f01aba58ec01fdd01257abf353 +Subproject commit 63d54b6575657c8bd8d221178253c750baf0ed3b diff --git a/src/custom/dep.cpp b/src/custom/dep.cpp index a458701d..24ec19be 100644 --- a/src/custom/dep.cpp +++ b/src/custom/dep.cpp @@ -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 }, @@ -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) {