Add TODO to document bug in recolorSvgXML

This commit is contained in:
luisangelsm
2026-02-28 18:20:13 +01:00
parent 61a0b590ed
commit 7e7c6a979c

View File

@ -66,6 +66,9 @@ QString recolorSvgXML(QString &svg,
const QString &placeHolder,
const QColor &color)
{
// TODO: svg colors can work without ;, we need to update all the svg files to inlude ;
// Include the trailing ';' so e.g. "#ff0;" never accidentally matches
// inside a previously-substituted value like "#ff0000;".
return svg.replace(placeHolder, color.name(QColor::HexRgb), Qt::CaseInsensitive);
}