About icons and folder: acode.icons and acode.folders #779
sebastianjnuwu
started this conversation in
Ideas
Replies: 3 comments 10 replies
|
Something like that similar to that visual studio extension |
10 replies
0 replies
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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?
All reactions