We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9f31e0 + 930cc3f commit bc32d5aCopy full SHA for bc32d5a
1 file changed
plugin/src/main/kotlin/com/github/grishberg/profiler/ui/PluginThemeController.kt
@@ -4,11 +4,11 @@ import com.github.grishberg.profiler.chart.theme.DarkPalette
4
import com.github.grishberg.profiler.chart.theme.LightPalette
5
import com.github.grishberg.profiler.ui.theme.Palette
6
import com.github.grishberg.profiler.ui.theme.ThemeController
7
-import com.intellij.util.ui.UIUtil
+import com.intellij.ui.JBColor
8
import javax.swing.JMenuBar
9
10
class PluginThemeController : ThemeController {
11
- private val dark = UIUtil.isUnderDarcula()
+ private val dark = !JBColor.isBright()
12
13
override val palette: Palette = if (dark) DarkPalette() else LightPalette()
14
0 commit comments