Skip to content

Commit

Permalink
Merge pull request #119 from Grigory-Rylov/remove_deprecated_api
Browse files Browse the repository at this point in the history
Remove deprecated api usage
  • Loading branch information
Grigory-Rylov authored Aug 25, 2024
2 parents d9f31e0 + 930cc3f commit bc32d5a
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.ui.JBColor
import javax.swing.JMenuBar

class PluginThemeController : ThemeController {
private val dark = UIUtil.isUnderDarcula()
private val dark = !JBColor.isBright()

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

Expand Down

0 comments on commit bc32d5a

Please sign in to comment.