<div dir="ltr">Hi Raymond,<div><br></div><div>I am on Windows with 3.20 and the icons are blue for me.</div><div><br></div><div>I opened the SVG in inkscape and saved an "optimized svg", which runs scours against it, and all that changed is the <font face="monospace"><?xml version="1.0" encoding="UTF-8"?></font> definition was added and <font face="monospace">version="1.1"</font> was injected into the svg tag.</div><div><br></div><div>One oddity though, is that when I changed the feature colour and saved it, the "bright" svg version retained the <font face="monospace"><style>.a {fill: #1b3d6e;}</style></font> data element, but the <b>path</b> tag got a <font face="monospace">fill="#00f"</font> added into it. I imagine QGIS is recognising the CSS (for me) but giving preference to the fill attribute.</div><div><br></div><div>Still, all icons are blue for me...</div><div><br></div><div><img src="cid:ii_ktwscnbb0" alt="image.png" width="215" height="76"></div><div><br></div><div>It could also be a contrast issue on the users screens changing, where the blue icon is simply appearing black, but I imagine most likely the system is not recognizing that css style in the svg.<br></div><div><br></div><div>I hope that helps you.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 23 Sept 2021 at 11:26, Raymond Nijssen <<a href="mailto:r.nijssen@terglobo.nl">r.nijssen@terglobo.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi devs!<br>
<br>
The dark blue icons on my plugin toolbar buttons are black for some of <br>
my customers (on Windows). One of them mentioned that they turned black <br>
after a QGIS update. On my Linux system they are still blue. I guess it <br>
has to do with Qt.<br>
<br>
<br>
<br>
Here's the content of the svg file:<br>
<br>
<svg xmlns="<a href="http://www.w3.org/2000/svg" rel="noreferrer" target="_blank">http://www.w3.org/2000/svg</a>" viewBox="0 0 32 32"><br>
<defs><br>
<style><br>
.a {<br>
fill: #1b3d6e;<br>
}<br>
</style><br>
</defs><br>
<path class="a" <br>
d="M15.52,6.54a7.29,7.29,0,0,0-1.77,7.38l-9.9,9.9-.34,4.33,5.94-.6v-2.8h2.8V22h2.8l3.37-3.36a7.26,7.26,0,1,0-2.9-12Zm5.37,2.1a2,2,0,1,1,0,2.81A2,2,0,0,1,20.89,8.64Z"/><br>
</svg><br>
<br>
<br>
<br>
And here's how I make the buttons:<br>
<br>
icon_fn = os.path.join(self.plugin_dir, 'img', 'icon_configuration.svg')<br>
icon = QIcon(icon_fn)<br>
action = QAction(icon, 'Configure', self.iface.mainWindow())<br>
self.toolbar.addAction(action)<br>
<br>
<br>
<br>
<br>
Hope anyone can clarify. The svg files were made by a designer, I guess <br>
in some Adobe application. Hope I don't need adjusting them.<br>
<br>
Kind regards,<br>
Raymond<br>
<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>