MCPcopy Create free account
hub / github.com/YACReader/yacreader / recoloredSvgToThemeFile

Function recoloredSvgToThemeFile

common/themes/icon_utils.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76QString recoloredSvgToThemeFile(const QString &resourcePath,
77 const QColor &color, // #f0f (magenta)
78 const QString &themeName,
79 const RecolorOptions &options)
80{
81 auto svg = readSvg(resourcePath);
82
83 recolorSvgXML(svg, "#f0f", color);
84
85 return writeSvg(svg, resourcePath, themeName, options);
86}
87
88QString recoloredSvgToThemeFile(const QString &resourcePath,
89 const QColor &color1, // #f0f (magenta)

Callers 3

setToolbarIconPairFunction · 0.85
makeThemeFunction · 0.85
makeThemeFunction · 0.85

Calls 3

readSvgFunction · 0.85
recolorSvgXMLFunction · 0.85
writeSvgFunction · 0.85

Tested by

no test coverage detected