Search code examples
javaintellij-ideaintellij-plugin

How to detect the current theme of the IntelliJ via open api?


How to detect the current theme of the IntelliJ via open api (com.intellij.openapi)?

Example: "Dracula"


Solution

  • You can use the UIUtil.isUnderDarcula() method.