Skip to content

Commit

Permalink
Remove deprecated api usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigory-Rylov committed Aug 24, 2024
1 parent d9f31e0 commit eca96a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import com.github.grishberg.profiler.chart.theme.DarkPalette
import com.github.grishberg.profiler.chart.theme.LightPalette
import com.github.grishberg.profiler.ui.theme.Palette
import com.github.grishberg.profiler.ui.theme.ThemeController
import com.intellij.util.ui.UIUtil
import com.intellij.util.ui.StartupUiUtil.isDarkTheme
import javax.swing.JMenuBar

class PluginThemeController : ThemeController {
private val dark = UIUtil.isUnderDarcula()
private val dark = isDarkTheme;

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

Expand Down

0 comments on commit eca96a9

Please sign in to comment.