From ad7bb1b2771c340fc7b2f4a8b62aa458efbdc6d6 Mon Sep 17 00:00:00 2001 From: Eugene Petrenko Date: Tue, 16 Mar 2021 19:58:46 +0100 Subject: [PATCH] runtime-chooser: IDEA-263881 - fixing review comments IJ-CR-7001 GitOrigin-RevId: 4411d489a4a7c7abcc5bdbf2266c7d794ec0e09d --- .../impl/jdkDownloader/RuntimeChooserDialog.kt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooserDialog.kt b/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooserDialog.kt index 39b4effae889..5360b72480e7 100644 --- a/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooserDialog.kt +++ b/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/RuntimeChooserDialog.kt @@ -15,9 +15,7 @@ import com.intellij.openapi.ui.TextFieldWithBrowseButton import com.intellij.openapi.util.Disposer import com.intellij.openapi.util.io.FileUtil import com.intellij.openapi.util.text.HtmlChunk -import com.intellij.ui.IdeBorderFactory import com.intellij.ui.JBColor -import com.intellij.ui.SideBorder import com.intellij.ui.SimpleColoredComponent import com.intellij.ui.components.JBLabel import com.intellij.ui.layout.* @@ -124,7 +122,9 @@ class RuntimeChooserDialog( override fun createTitlePane(): JComponent { return object : BorderLayoutPanel() { init { - border = JBUI.Borders.merge(JBUI.Borders.empty(10), IdeBorderFactory.createBorder(JBColor.border(), SideBorder.BOTTOM), true) + border = JBUI.Borders.merge(JBUI.Borders.empty(10), JBUI.Borders.customLineBottom(JBColor.border()), true) + background = JBUI.CurrentTheme.Notification.BACKGROUND + foreground = JBUI.CurrentTheme.Notification.FOREGROUND addToCenter(JBLabel().apply { icon = AllIcons.General.Warning @@ -136,9 +136,6 @@ class RuntimeChooserDialog( withPreferredWidth(400) } - - override fun getBackground() = JBUI.CurrentTheme.Notification.BACKGROUND - override fun getForeground() = JBUI.CurrentTheme.Notification.FOREGROUND } }