Browse Source

Adjust for new dark widgets in bidoo

tags/22.03
falkTX 3 years ago
parent
commit
0d24cfb1f8
1 changed files with 18 additions and 3 deletions
  1. +18
    -3
      src/custom/dep.cpp

+ 18
- 3
src/custom/dep.cpp View File

@@ -336,10 +336,25 @@ static inline bool invertPaint(NSVGshape* const shape, NSVGpaint& paint, const c
return false;

// Special case for Bidoo red color
if (paint.color == 0xff001fcd && svgFileToInvert != nullptr && std::strncmp(svgFileToInvert, "/Bidoo/", 7) == 0)
if (svgFileToInvert != nullptr && std::strncmp(svgFileToInvert, "/Bidoo/", 7) == 0)
{
paint.color = 0xcf8b94c4;
return true;
if (paint.color == 0xff001fcd)
{
paint.color = 0xcf8b94c4;
return true;
}
if (paint.color == 0xff000000 && shape->stroke.type == NSVG_PAINT_COLOR)
{
switch (shape->stroke.color)
{
case 0xff777777:
case 0xff7c7c7c:
case 0xff828282:
case 0xffb1b1b1:
case 0xffb2b2b2:
return false;
}
}
}

// Special case for JW-Modules colors


Loading…
Cancel
Save