From 572c42a9f0f35f3a544283b2daeff24ef1edce64 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 25 Feb 2022 16:20:59 +0000 Subject: [PATCH] Tweak lilac colors Signed-off-by: falkTX --- src/custom/dep.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/custom/dep.cpp b/src/custom/dep.cpp index 729d748..b8fa099 100644 --- a/src/custom/dep.cpp +++ b/src/custom/dep.cpp @@ -305,6 +305,30 @@ static inline bool invertPaint(NSVGpaint& paint, const char* const svgFileToInve } } + // Special case for Lilac + if (svgFileToInvert != nullptr && std::strncmp(svgFileToInvert, "/LilacLoop/", 7) == 0) + { + switch (paint.color) + { + // main bg (custom) + case 0xffd5d5da: + paint.color = 0xff242228; + return true; + // main color (do nothing) + case 0xffbfb7d7: + return false; + // screws (hide) + case 0xffc8c8cf: + case 0xffbcbcbc: + case 0xffb1b1bb: + case 0xffacacac: + case 0xff898991: + case 0xff727272: + paint.color = 0x00000000; + return true; + } + } + switch (paint.color) { // scopes or other special things (do nothing)