-
-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom SVG icon setting appends random number to the end makes it not found #827
Comments
Oh, could you please post your other settings for the material icon theme? It might be if you set the opacity or saturation of an icon to something else than the default value then it could break the ability to add custom SVG files 😳 |
@PKief Exactly! I use that settings. Let me show you full settings:
However, I've removed EDIT: It seems also How can we get around this together with those options? |
Thank you, yes it currently affects all settings which produce some changes to the SVG icons itself. A workaround is to remove all settings that change the SVG icon:
The root cause for adding the numbers after the icon name is that it triggers the automatic reload of all icons when e.g. their color has been changed. One solution would be to append these numbers to the custom icons, too. The other solution would be to simply ignore custom icons. I will investigate a solution soon. |
This is how my structure looks and svg icon located:
In the settings.json the icon can be associated to a file name or file extension like this:
However, In console I get following error:
As you can see instead of
my_icon.svg
it saysmy_icon~185020693.svg
. And this number changes on every reload/save.And file icon becomes empty.
The text was updated successfully, but these errors were encountered: