From 25cacafa9c1080715fb7e6e2f24869de76e67db9 Mon Sep 17 00:00:00 2001 From: Anton Makeev Date: Thu, 18 Dec 2014 11:33:01 +0100 Subject: [PATCH] Platform: startup error dialog UI tuned a little bit (use UIUtil to get panel color) --- platform/bootstrap/src/com/intellij/idea/Main.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/bootstrap/src/com/intellij/idea/Main.java b/platform/bootstrap/src/com/intellij/idea/Main.java index ff3e6a52b543..373f8dbf7a38 100644 --- a/platform/bootstrap/src/com/intellij/idea/Main.java +++ b/platform/bootstrap/src/com/intellij/idea/Main.java @@ -22,6 +22,7 @@ import com.intellij.openapi.util.SystemInfoRt; import com.intellij.openapi.util.io.FileUtilRt; import com.intellij.util.ArrayUtilRt; import com.intellij.util.Restarter; +import com.intellij.util.ui.UIUtil; import javax.swing.*; import java.awt.*; @@ -221,7 +222,7 @@ public class Main { JTextPane textPane = new JTextPane(); textPane.setEditable(false); textPane.setText(message.replaceAll("\t", " ")); - textPane.setBackground(new JPanel().getBackground()); + textPane.setBackground(UIUtil.getPanelBackground()); textPane.setCaretPosition(0); JScrollPane scrollPane = new JScrollPane( textPane, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);