Tips on less Ugly popup buttons

Gday I am very new to Java and Swing UI, I got a dropdown working in the Haxe plugin for Idea and was looking for some tips on how to make buttons less "ugly" and more consistand with the other Idea popups.
custom_popup.jpg

I am using some JButtons on JPanel that is added using the JBPopupFactory.getInstance().createComponentPopupBuilder https://github.com/impaler/intellij-haxe/commit/1efca0d681ebae7f87cd3850e239361b265a4fc8

Can someone point me to the code in the community version used for the "Edit Configurations" dropdown for Run/Debug Configurations in the main toolbar?
build_config.jpg

Maybe there is a style system documented somewhere for Jetbrains plugin development?
Any help, tips would be appreciated.

2 comments

Please see com.intellij.openapi.actionSystem.ex.ComboBoxAction

0

Awesome thanks Yann, I think however my approach with this plugin ui is wrong and instead I will use Idea's already well formated run configurations to override the target as a module can have multiple ones.
Cheers!

0

Please sign in to leave a comment.