About icons and folder: acode.icons and acode.folders #779
Replies: 3 comments 10 replies
-
Something like that similar to that visual studio extension |
Beta Was this translation helpful? Give feedback.
-
Nah bro, you can do this with vanilla javascript. Actually I tried similar to this approach for file icons in the first place and it worked... Loop over an array of objects to return a string like: let cssString = fileIcons.map((val)=>{
return `.icons.${val.name}::before{
background-image: url(${val.iconUrl});
}`
}).join("\n") Now use that cssString as text content in style tag before appending to head. |
Beta Was this translation helpful? Give feedback.
-
Hello, I have an icon plugin in acode, but the way I add the icons is very annoying, in addition to the code being very ugly, I wanted to help other developers to do this:
with that way it would be much easier, would anyone be available to add?
Beta Was this translation helpful? Give feedback.
All reactions