Change icon of a JButton when change the theme
I have developed a plugin with tool window. I want to change one of tool bar button icon when change the theme. how can i write theme change listener and make theme wise UI changes with out IDE re-start.
Please sign in to leave a comment.
You might want to take a look at LafManagerListener, EditorColorsListener and UISettingsListener.
Also, if you want to use different icon under darcula, you can just put it near the default one. IconLoader.getIcon will return wrapper that would use the right one.