Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f4c2b commit f0e0cb6Copy full SHA for f0e0cb6
1 file changed
lib/matplotlib/backends/backend_wx.py
@@ -1070,7 +1070,7 @@ def _icon(name):
1070
fg_lum = (.299 * fg.red + .587 * fg.green + .114 * fg.blue) / 255
1071
dark = fg_lum - bg_lum > .2
1072
if dark:
1073
- svg = svg.replace(b'style="fill:black;"', b'style="fill:white;"')
+ svg = svg.replace(b'fill:black;', b'fill:white;')
1074
toolbarIconSize = wx.ArtProvider().GetDIPSizeHint(wx.ART_TOOLBAR)
1075
return wx.BitmapBundle.FromSVG(svg, toolbarIconSize)
1076
0 commit comments