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?
UIUtil.isUnderDarcula() does what you need.
UIUtil.isUnderDarcula()