PHP Icon

Hi,

I would like to use PHP file type icon in my PhpStorm plugin, how can I get it? Usually I'm using IconLoader.findIcon("some/path/to/icon.png"). The problem is that php file type icon is not in the ordinary icons directory, but in PHP plugin directory in PhpStorm and I don't know how to figure out the path to that icon...



Wojtek
2 comments
Comment actions Permalink

If you have set com.jetbrains.php as a dependency in your plugin it should work with IconLoader.findIcon("/icons/php-icon.png"). The php icons are located in php.jar in the plugins directory of the PhpStorm installation.

0
Comment actions Permalink

That works fine. Thanks!

0

Please sign in to leave a comment.