Search code examples
intellij-ideaintellij-plugin

How to get the theme that the current user use in intellij?


I develop the intellij plugin, but some backgroud color in Windows Theme and Darcula Theme show very different.

How to get the intellij theme in plugin code?


Solution

  • UIUtil.isUnderDarcula() does what you need.