Platform: startup error dialog UI tuned a little bit (use UIUtil to get panel color)

This commit is contained in:
Anton Makeev
2014-12-18 11:34:17 +01:00
parent 62e141db4d
commit 25cacafa9c
@@ -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);