<div dir="ltr">Hi Raymond,<div><br></div><div>There has been an issue in Qt, where it was very picky with the <span style="color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px;background-color:rgb(244,245,247)"><style></span> tag in the svg [1]</div><div><br></div><div>This is solved in newer Qt versions (and newer QGIS for Windows builds) but is still present in the early QGIS 3.16 builds based on older Qt versions.</div><div><br></div><div>The quick hack is to replace the <span style="color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px;background-color:rgb(244,245,247)"><style></span> tag with <span style="background-color:rgb(244,245,247);color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px"> </span><span style="background-color:rgb(244,245,247);color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px"><style type="text/css"></span> in the svg.</div><div>Or upgrade to the latest QGIS version.</div><div><br></div><div>Cheers</div><div>Matthias</div><div><br></div><div><a href="https://bugreports.qt.io/browse/QTBUG-58326?focusedCommentId=344465&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-344465">https://bugreports.qt.io/browse/QTBUG-58326?focusedCommentId=344465&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-344465</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 24, 2021 at 4:26 AM Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</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">On Thu, 23 Sept 2021 at 19:26, Raymond Nijssen <<a href="mailto:r.nijssen@terglobo.nl" target="_blank">r.nijssen@terglobo.nl</a>> wrote:<br>
><br>
> 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>
Hi Raymond,<br>
<br>
I've seen this in the past. Seems that Qt on windows is more sensitive<br>
to SVG structure vs other platforms! In the past I've had luck by<br>
optimising the svg with <a href="https://jakearchibald.github.io/svgomg/" rel="noreferrer" target="_blank">https://jakearchibald.github.io/svgomg/</a>  ,<br>
which seems to make Qt happier... (Turn off "Round/rewrite numbers"<br>
option though, cos that makes Qt LESS happy!)<br>
<br>
Nyall<br>
<br>
<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>
_______________________________________________<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>