Skip to content

Commit bc32d5a

Browse files
Merge pull request #119 from Grigory-Rylov/remove_deprecated_api
Remove deprecated api usage
2 parents d9f31e0 + 930cc3f commit bc32d5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugin/src/main/kotlin/com/github/grishberg/profiler/ui/PluginThemeController.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import com.github.grishberg.profiler.chart.theme.DarkPalette
44
import com.github.grishberg.profiler.chart.theme.LightPalette
55
import com.github.grishberg.profiler.ui.theme.Palette
66
import com.github.grishberg.profiler.ui.theme.ThemeController
7-
import com.intellij.util.ui.UIUtil
7+
import com.intellij.ui.JBColor
88
import javax.swing.JMenuBar
99

1010
class PluginThemeController : ThemeController {
11-
private val dark = UIUtil.isUnderDarcula()
11+
private val dark = !JBColor.isBright()
1212

1313
override val palette: Palette = if (dark) DarkPalette() else LightPalette()
1414

0 commit comments

Comments
 (0)