如何获取当前用户在intellij中使用的主题?

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

我开发了intellij插件,但是Windows Theme和Darcula Theme中的一些背景颜色显示非常不同。

如何获取插件代码中的intellij主题?

UIUtil.isUnderDarcula() 满足您的需求。

您还可以利用JBColor在不同的主题下显示不同。