Browse Source

Handle a few more colors, AudibleInstruments looks correct

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 4 years ago
parent
commit
38702e91f2
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      src/override/dep.cpp

+ 17
- 0
src/override/dep.cpp View File

@@ -409,6 +409,18 @@ static bool invertPaint(NSVGpaint& paint, const char* const svgFileToInvert = nu
case 0xff303030:
case 0xff362c23:
case 0xff40352c:
case 0xff5735d9:
case 0xff5935d8:
case 0xff5c26d9:
case 0xff6140db:
case 0xffa09400:
case 0xffa19400:
case 0xffa7a100:
case 0xffa8a200:
case 0xffaba102:
case 0xff22a5e9:
case 0xff6140da:
case 0xff119ee6:
return false;
// pure black (convert to not quite pure white)
case 0xff000000:
@@ -497,6 +509,11 @@ NSVGimage* nsvgParseFromFileCardinal(const char* const filename, const char* con
return handle;
}

// Special case for AmalgamatedHarmonics background color
if (handle->shapes != nullptr && handle->shapes->fill.color == 0xff000000)
if (std::strstr(filename, "/AmalgamatedHarmonics/") != nullptr)
handle->shapes->fill.color = 0xff191919;

return handle;
}



Loading…
Cancel
Save