From 3208f5dccb956414723cff2fc7b628cb00748d20 Mon Sep 17 00:00:00 2001 From: marcin Date: Tue, 10 Dec 2024 14:49:42 +0100 Subject: [PATCH] Do not use internal API --- .../com/vaadin/plugin/ui/VaadinStatusBarInfoPopupPanel.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarInfoPopupPanel.kt b/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarInfoPopupPanel.kt index c6ad0d1..759c227 100644 --- a/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarInfoPopupPanel.kt +++ b/src/main/kotlin/com/vaadin/plugin/ui/VaadinStatusBarInfoPopupPanel.kt @@ -4,19 +4,20 @@ import com.intellij.icons.AllIcons import com.intellij.openapi.project.DumbService import com.intellij.openapi.project.Project import com.intellij.openapi.ui.DialogPanel +import com.intellij.ui.NewUiValue import com.intellij.ui.components.JBLabel import com.intellij.util.ui.JBEmptyBorder import com.intellij.util.ui.JBFont import com.intellij.util.ui.UIUtil import com.vaadin.plugin.copilot.CopilotPluginUtil import com.vaadin.plugin.utils.hasEndpoints +import org.jdesktop.swingx.HorizontalLayout +import org.jdesktop.swingx.VerticalLayout import java.awt.Component import javax.swing.JButton import javax.swing.JComponent import javax.swing.JLabel import javax.swing.JPanel -import org.jdesktop.swingx.HorizontalLayout -import org.jdesktop.swingx.VerticalLayout class VaadinStatusBarInfoPopupPanel(private val project: Project) : JPanel() { @@ -86,7 +87,7 @@ class VaadinStatusBarInfoPopupPanel(private val project: Project) : JPanel() { private fun createDescription(text: String): JComponent { val desc = JLabel(text) - desc.font = JBFont.smallOrNewUiMedium() + desc.font = if (NewUiValue.isEnabled()) JBFont.medium() else JBFont.small() desc.foreground = UIUtil.getLabelInfoForeground() return desc