mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Platform: startup error dialog UI tuned a little bit (use UIUtil to get panel color)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user