You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current @icon value injected during build are all PNGs. It could be a good idea to replace them with minified SVG files where that makes sense.
I noticed that the icons are a little blurry when I finally added an icon to my plugin:
My plugin's icon stands out among all the rest because it's an SVG. Maybe we can move some official plugins to SVG too? For what is worth, the SVG is 1.7 kb -- not that different from the PNGs in https://iitc.app/extras/plugin-icons/, and even smaller than them if you gzip.
(My icon also stands out because it doesn't have the right black border and corners, but that, too, can be solved when we have official SVGs.)
"where that makes sense" is because we have some icons that aren't drawn by us, like the basemap icons.
The text was updated successfully, but these errors were encountered:
Alright, first issue with this: my script's @icon is not showing up in Tampermonkey. This of course won't affect whatever I want to do to IITC Button, but it's annoying and I want to know why: does Tampermonkey not understand SVG (unlikely: Tampermonkey/tampermonkey#1500 works), or did it get confused by GitHub's awful Content-Type?
Yep, works with jsdelivr. Is content-type issue, won't happen with your iitc.app server.
The current
@icon
value injected during build are all PNGs. It could be a good idea to replace them with minified SVG files where that makes sense.I noticed that the icons are a little blurry when I finally added an icon to my plugin:
My plugin's icon stands out among all the rest because it's an SVG. Maybe we can move some official plugins to SVG too? For what is worth, the SVG is 1.7 kb -- not that different from the PNGs in https://iitc.app/extras/plugin-icons/, and even smaller than them if you gzip.
(My icon also stands out because it doesn't have the right black border and corners, but that, too, can be solved when we have official SVGs.)
"where that makes sense" is because we have some icons that aren't drawn by us, like the basemap icons.
The text was updated successfully, but these errors were encountered: