Is there a way to detect the current theme?

Question: is it possible to detect which theme a user is running, and specifically, if it's Darcula or not? If so, how can I do this?

Thanks,

Erik

0

Ah, never mind, it's just a Swing thing: you can detect it using UIManager.getLookAndFeel().

0

You should use com.intellij.util.ui.UIUtil#isUnderDarcula

0

Ah, nice, didn't know that one. Thanks!!

0

请先登录再写评论。