oxc-project / oxc-intellij-plugin

25 stars 2 forks source link

Update to use a custom icon for the config files #61

Closed nrayburn-tech closed 3 weeks ago

nrayburn-tech commented 3 weeks ago

All of the oxlint config files should be updated to use a custom icon. There is some guidance on how to do this available here https://plugins.jetbrains.com/docs/intellij/icons.html.

  1. Identify the required icon files
  2. Add the icon files to the resources/icons folder
  3. Create an "icon holder" class that loads all the icons
  4. Create an IconProvider to load the appropriate icon based on the file. (Determine what to do with eslint config files)
  5. Register the IconProvider within plugin.xml
nrayburn-tech commented 3 weeks ago

@IWANABETHATGUY any idea where I might be able to get the SVG files for this? https://plugins.jetbrains.com/docs/intellij/icons-style.html contains the guidelines for the icons. I've also put the stylelint SVG files below for reference. We only need the dark versions if the dark icon should be different than the light version.

stylelint-dark dark stylelint light new-styleline-dark new ui dark new-stylelint new ui light