简体   繁体   中英

Custom icon doesn't show up in Intellij Actions

I am adding custom icon to my intellij plugin action.

<action icon="/video/videoicon.svg" class="actions.PopupDialogAction" description="Test Description" id="fetchSession" text="Fetch Session"/>

videoicon is a 16*16 custom icon.

My action toolbar doesn't show up the icon though, what am I doing wrong? (the first image which shows blank is where I want to show the icon.

I can access the icon by pressing the command + click, not sure what's wrong.

Action Toolbar image

May be if you invalidate the app cache it will reload the plugin data (not sure if it will work, but after every plugin update some restart is needed). So I will suggest to go to File > Invalidate Caches / Restart > Invalidate and Restart.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM