mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Add TODO to document bug in recolorSvgXML
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user